update for modified assembler
This commit is contained in:
+28
-28
@@ -1,5 +1,5 @@
|
||||
thumb_func_start SwitchFlashBank
|
||||
SwitchFlashBank: @ 82E185C
|
||||
SwitchFlashBank: ; 82E185C
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r3, _082E1878
|
||||
@@ -20,8 +20,8 @@ _082E187C: .4byte 0x0e002aaa
|
||||
thumb_func_end SwitchFlashBank
|
||||
|
||||
thumb_func_start ReadFlashID
|
||||
@ u16 ReadFlashID()
|
||||
ReadFlashID: @ 82E1880
|
||||
; u16 ReadFlashID()
|
||||
ReadFlashID: ; 82E1880
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x44
|
||||
mov r0, sp
|
||||
@@ -96,8 +96,8 @@ _082E1908:
|
||||
thumb_func_end ReadFlashID
|
||||
|
||||
thumb_func_start FlashTimerIntr
|
||||
@ void FlashTimerIntr()
|
||||
FlashTimerIntr: @ 82E191C
|
||||
; void FlashTimerIntr()
|
||||
FlashTimerIntr: ; 82E191C
|
||||
push {lr}
|
||||
ldr r1, _082E193C
|
||||
ldrh r0, [r1]
|
||||
@@ -121,8 +121,8 @@ _082E1940: .4byte 0x03007840
|
||||
thumb_func_end FlashTimerIntr
|
||||
|
||||
thumb_func_start SetFlashTimerIntr
|
||||
@ void SetFlashTimerIntr(u8 timer_id, void ( **irq_timer_func)())
|
||||
SetFlashTimerIntr: @ 82E1944
|
||||
; void SetFlashTimerIntr(u8 timer_id, void ( **irq_timer_func)())
|
||||
SetFlashTimerIntr: ; 82E1944
|
||||
push {lr}
|
||||
adds r2, r1, 0
|
||||
lsls r0, 24
|
||||
@@ -154,7 +154,7 @@ _082E197A:
|
||||
thumb_func_end SetFlashTimerIntr
|
||||
|
||||
thumb_func_start StartFlashTimer
|
||||
StartFlashTimer: @ 82E1980
|
||||
StartFlashTimer: ; 82E1980
|
||||
push {r4-r6,lr}
|
||||
mov r6, r10
|
||||
mov r5, r9
|
||||
@@ -233,7 +233,7 @@ _082E1A24: .4byte 0x04000202
|
||||
thumb_func_end StartFlashTimer
|
||||
|
||||
thumb_func_start StopFlashTimer
|
||||
StopFlashTimer: @ 82E1A28
|
||||
StopFlashTimer: ; 82E1A28
|
||||
ldr r3, _082E1A58
|
||||
movs r1, 0
|
||||
strh r1, [r3]
|
||||
@@ -266,15 +266,15 @@ _082E1A68: .4byte 0x03001a78
|
||||
thumb_func_end StopFlashTimer
|
||||
|
||||
thumb_func_start ReadFlash1
|
||||
@ u8 ReadFlash1(int address)
|
||||
ReadFlash1: @ 82E1A6C
|
||||
; u8 ReadFlash1(int address)
|
||||
ReadFlash1: ; 82E1A6C
|
||||
ldrb r0, [r0]
|
||||
bx lr
|
||||
thumb_func_end ReadFlash1
|
||||
|
||||
thumb_func_start SetReadFlash1
|
||||
@ void SetReadFlash1(u8 ( *target_func)(int address))
|
||||
SetReadFlash1: @ 82E1A70
|
||||
; void SetReadFlash1(u8 ( *target_func)(int address))
|
||||
SetReadFlash1: ; 82E1A70
|
||||
push {lr}
|
||||
adds r2, r0, 0
|
||||
ldr r1, _082E1A8C
|
||||
@@ -308,7 +308,7 @@ _082E1AA4:
|
||||
thumb_func_end SetReadFlash1
|
||||
|
||||
thumb_func_start ReadFlash_Core
|
||||
ReadFlash_Core: @ 82E1AB0
|
||||
ReadFlash_Core: ; 82E1AB0
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
subs r3, r2, 0x1
|
||||
@@ -331,7 +331,7 @@ _082E1ACC:
|
||||
thumb_func_end ReadFlash_Core
|
||||
|
||||
thumb_func_start ReadFlash
|
||||
ReadFlash: @ 82E1AD4
|
||||
ReadFlash: ; 82E1AD4
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x80
|
||||
adds r5, r1, 0
|
||||
@@ -409,7 +409,7 @@ _082E1B6C: .4byte 0x03007850
|
||||
thumb_func_end ReadFlash
|
||||
|
||||
thumb_func_start VerifyFlashSector_Core
|
||||
VerifyFlashSector_Core: @ 82E1B70
|
||||
VerifyFlashSector_Core: ; 82E1B70
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
adds r3, r1, 0
|
||||
@@ -440,7 +440,7 @@ _082E1B98:
|
||||
thumb_func_end VerifyFlashSector_Core
|
||||
|
||||
thumb_func_start VerifyFlashSector
|
||||
VerifyFlashSector: @ 82E1BA0
|
||||
VerifyFlashSector: ; 82E1BA0
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x100
|
||||
adds r5, r1, 0
|
||||
@@ -515,7 +515,7 @@ _082E1C34: .4byte 0x03007850
|
||||
thumb_func_end VerifyFlashSector
|
||||
|
||||
thumb_func_start VerifyFlashSectorFirstNBytes
|
||||
VerifyFlashSectorFirstNBytes: @ 82E1C38
|
||||
VerifyFlashSectorFirstNBytes: ; 82E1C38
|
||||
push {r4-r6,lr}
|
||||
sub sp, 0x100
|
||||
adds r5, r1, 0
|
||||
@@ -591,7 +591,7 @@ _082E1CCC: .4byte 0x03007850
|
||||
thumb_func_end VerifyFlashSectorFirstNBytes
|
||||
|
||||
thumb_func_start ProgramFlashSectorsAndVerify
|
||||
ProgramFlashSectorsAndVerify: @ 82E1CD0
|
||||
ProgramFlashSectorsAndVerify: ; 82E1CD0
|
||||
push {r4-r6,lr}
|
||||
adds r5, r1, 0
|
||||
lsls r0, 16
|
||||
@@ -630,7 +630,7 @@ _082E1D10: .4byte 0x0300784c
|
||||
thumb_func_end ProgramFlashSectorsAndVerify
|
||||
|
||||
thumb_func_start ProgramFlashSectorsVerifyFirstNBytes
|
||||
ProgramFlashSectorsVerifyFirstNBytes: @ 82E1D14
|
||||
ProgramFlashSectorsVerifyFirstNBytes: ; 82E1D14
|
||||
push {r4-r7,lr}
|
||||
adds r5, r1, 0
|
||||
adds r7, r2, 0
|
||||
@@ -671,8 +671,8 @@ _082E1D58: .4byte 0x0300784c
|
||||
thumb_func_end ProgramFlashSectorsVerifyFirstNBytes
|
||||
|
||||
thumb_func_start IdentifyFlash
|
||||
@ _BOOL2 IdentifyFlash()
|
||||
IdentifyFlash: @ 82E1D5C
|
||||
; _BOOL2 IdentifyFlash()
|
||||
IdentifyFlash: ; 82E1D5C
|
||||
push {r4,lr}
|
||||
ldr r2, _082E1D7C
|
||||
ldrh r0, [r2]
|
||||
@@ -748,7 +748,7 @@ _082E1DF8: .4byte 0x03007850
|
||||
thumb_func_end IdentifyFlash
|
||||
|
||||
thumb_func_start PollingSR_COMMON
|
||||
PollingSR_COMMON: @ 82E1DFC
|
||||
PollingSR_COMMON: ; 82E1DFC
|
||||
push {r4-r7,lr}
|
||||
mov r7, r9
|
||||
mov r6, r8
|
||||
@@ -830,7 +830,7 @@ _082E1E88:
|
||||
thumb_func_end PollingSR_COMMON
|
||||
|
||||
thumb_func_start EraseFlashChip
|
||||
EraseFlashChip: @ 82E1E9C
|
||||
EraseFlashChip: ; 82E1E9C
|
||||
push {r4-r6,lr}
|
||||
sub sp, 0x40
|
||||
ldr r5, _082E1EF8
|
||||
@@ -884,7 +884,7 @@ _082E1F0C: .4byte 0x03007848
|
||||
thumb_func_end EraseFlashChip
|
||||
|
||||
thumb_func_start EraseFlashSector
|
||||
EraseFlashSector: @ 82E1F10
|
||||
EraseFlashSector: ; 82E1F10
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x40
|
||||
lsls r0, 16
|
||||
@@ -984,7 +984,7 @@ _082E1FDC: .4byte 0x0000fffc
|
||||
thumb_func_end EraseFlashSector
|
||||
|
||||
thumb_func_start ProgramFlashByte
|
||||
ProgramFlashByte: @ 82E1FE0
|
||||
ProgramFlashByte: ; 82E1FE0
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x40
|
||||
adds r6, r1, 0
|
||||
@@ -1056,7 +1056,7 @@ _082E206C:
|
||||
thumb_func_end ProgramFlashByte
|
||||
|
||||
thumb_func_start ProgramFlashByteInternal
|
||||
ProgramFlashByteInternal: @ 82E2074
|
||||
ProgramFlashByteInternal: ; 82E2074
|
||||
push {r4,lr}
|
||||
ldr r4, _082E20A0
|
||||
movs r2, 0xAA
|
||||
@@ -1085,7 +1085,7 @@ _082E20A8: .4byte 0x03007848
|
||||
thumb_func_end ProgramFlashByteInternal
|
||||
|
||||
thumb_func_start ProgramFlashSector
|
||||
ProgramFlashSector: @ 82E20AC
|
||||
ProgramFlashSector: ; 82E20AC
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x40
|
||||
adds r7, r1, 0
|
||||
|
||||
Reference in New Issue
Block a user