mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
update for modified assembler
This commit is contained in:
parent
c21b61688e
commit
41013b2feb
@ -1,6 +1,6 @@
|
||||
thumb_func_start ClearDma3Requests
|
||||
@ void ClearDma3Requests()
|
||||
ClearDma3Requests: @ 8000BB8
|
||||
; void ClearDma3Requests()
|
||||
ClearDma3Requests: ; 8000BB8
|
||||
push {lr}
|
||||
ldr r2, =0x03000810
|
||||
movs r0, 0x1
|
||||
@ -11,14 +11,14 @@ ClearDma3Requests: @ 8000BB8
|
||||
movs r3, 0
|
||||
ldr r0, =0x03000010
|
||||
movs r1, 0x7F
|
||||
_08000BCC:
|
||||
@loop:
|
||||
strh r3, [r0, 0x8]
|
||||
str r3, [r0]
|
||||
str r3, [r0, 0x4]
|
||||
adds r0, 0x10
|
||||
subs r1, 0x1
|
||||
cmp r1, 0
|
||||
bge _08000BCC
|
||||
bge @loop
|
||||
movs r0, 0
|
||||
strb r0, [r2]
|
||||
pop {r0}
|
||||
@ -28,8 +28,8 @@ _08000BCC:
|
||||
thumb_func_end ClearDma3Requests
|
||||
|
||||
thumb_func_start ProcessDma3Requests
|
||||
@ void ProcessDma3Requests()
|
||||
ProcessDma3Requests: @ 8000BF0
|
||||
; void ProcessDma3Requests()
|
||||
ProcessDma3Requests: ; 8000BF0
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -39,9 +39,9 @@ ProcessDma3Requests: @ 8000BF0
|
||||
ldr r0, =0x03000810
|
||||
ldrb r0, [r0]
|
||||
cmp r0, 0
|
||||
beq _08000C06
|
||||
b _08000E46
|
||||
_08000C06:
|
||||
beq @08000C06
|
||||
b @08000E46
|
||||
@08000C06:
|
||||
movs r0, 0
|
||||
str r0, [sp, 0x8]
|
||||
ldr r1, =0x03000010
|
||||
@ -52,9 +52,9 @@ _08000C06:
|
||||
ldrh r0, [r0, 0x8]
|
||||
mov r12, r2
|
||||
cmp r0, 0
|
||||
bne _08000C1E
|
||||
b _08000E46
|
||||
_08000C1E:
|
||||
bne @08000C1E
|
||||
b @08000E46
|
||||
@08000C1E:
|
||||
mov r8, r1
|
||||
adds r1, 0x4
|
||||
mov r10, r1
|
||||
@ -63,7 +63,7 @@ _08000C1E:
|
||||
ldr r7, =0x040000d4
|
||||
movs r2, 0
|
||||
mov r9, r2
|
||||
_08000C2E:
|
||||
@08000C2E:
|
||||
mov r3, r12
|
||||
ldrb r0, [r3]
|
||||
lsls r5, r0, 4
|
||||
@ -79,48 +79,48 @@ _08000C2E:
|
||||
lsls r0, 8
|
||||
ldr r3, [sp, 0x8]
|
||||
cmp r3, r0
|
||||
bls _08000C50
|
||||
b _08000E46
|
||||
_08000C50:
|
||||
bls @08000C50
|
||||
b @08000E46
|
||||
@08000C50:
|
||||
ldr r0, =0x04000006
|
||||
ldrb r0, [r0]
|
||||
cmp r0, 0xE0
|
||||
bls _08000C5A
|
||||
b _08000E46
|
||||
_08000C5A:
|
||||
bls @08000C5A
|
||||
b @08000E46
|
||||
@08000C5A:
|
||||
ldrh r0, [r1, 0xA]
|
||||
cmp r0, 0x2
|
||||
beq _08000CD0
|
||||
beq @08000CD0
|
||||
cmp r0, 0x2
|
||||
bgt _08000C80
|
||||
bgt @08000C80
|
||||
cmp r0, 0x1
|
||||
beq _08000C8C
|
||||
b _08000DF0
|
||||
beq @08000C8C
|
||||
b @08000DF0
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000C80:
|
||||
@08000C80:
|
||||
cmp r0, 0x3
|
||||
beq _08000D3C
|
||||
beq @08000D3C
|
||||
cmp r0, 0x4
|
||||
bne _08000C8A
|
||||
b _08000D88
|
||||
_08000C8A:
|
||||
b _08000DF0
|
||||
_08000C8C:
|
||||
bne @08000C8A
|
||||
b @08000D88
|
||||
@08000C8A:
|
||||
b @08000DF0
|
||||
@08000C8C:
|
||||
ldr r3, [r1]
|
||||
mov r2, r10
|
||||
adds r0, r5, r2
|
||||
ldr r2, [r0]
|
||||
ldrh r1, [r1, 0x8]
|
||||
cmp r1, r6
|
||||
bhi _08000CA6
|
||||
bhi @08000CA6
|
||||
str r3, [r7]
|
||||
str r2, [r7, 0x4]
|
||||
lsrs r0, r1, 2
|
||||
movs r1, 0x84
|
||||
lsls r1, 24
|
||||
b _08000DAA
|
||||
_08000CA6:
|
||||
b @08000DAA
|
||||
@08000CA6:
|
||||
ldr r4, =0x040000d4
|
||||
str r3, [r4]
|
||||
str r2, [r4, 0x4]
|
||||
@ -131,22 +131,22 @@ _08000CA6:
|
||||
adds r2, r6
|
||||
subs r1, r6
|
||||
cmp r1, r6
|
||||
bhi _08000CA6
|
||||
bhi @08000CA6
|
||||
str r3, [r4]
|
||||
str r2, [r4, 0x4]
|
||||
lsrs r0, r1, 2
|
||||
movs r1, 0x84
|
||||
lsls r1, 24
|
||||
b _08000D76
|
||||
b @08000D76
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000CD0:
|
||||
@08000CD0:
|
||||
mov r3, r10
|
||||
adds r0, r5, r3
|
||||
ldr r4, [r0]
|
||||
ldrh r1, [r1, 0x8]
|
||||
cmp r1, r6
|
||||
bhi _08000CF4
|
||||
bhi @08000CF4
|
||||
mov r0, r8
|
||||
adds r0, 0xC
|
||||
adds r0, r5, r0
|
||||
@ -158,8 +158,8 @@ _08000CD0:
|
||||
lsrs r0, r1, 2
|
||||
movs r1, 0x85
|
||||
lsls r1, 24
|
||||
b _08000DAA
|
||||
_08000CF4:
|
||||
b @08000DAA
|
||||
@08000CF4:
|
||||
mov r2, r12
|
||||
ldrb r0, [r2]
|
||||
lsls r0, 4
|
||||
@ -178,7 +178,7 @@ _08000CF4:
|
||||
adds r4, r6
|
||||
subs r1, r6
|
||||
cmp r1, r6
|
||||
bhi _08000CF4
|
||||
bhi @08000CF4
|
||||
ldrb r0, [r2]
|
||||
lsls r0, 4
|
||||
adds r0, r5
|
||||
@ -190,24 +190,24 @@ _08000CF4:
|
||||
lsrs r0, r1, 2
|
||||
movs r1, 0x85
|
||||
lsls r1, 24
|
||||
b _08000DEA
|
||||
b @08000DEA
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000D3C:
|
||||
@08000D3C:
|
||||
ldr r3, [r1]
|
||||
mov r2, r10
|
||||
adds r0, r5, r2
|
||||
ldr r2, [r0]
|
||||
ldrh r1, [r1, 0x8]
|
||||
cmp r1, r6
|
||||
bhi _08000D56
|
||||
bhi @08000D56
|
||||
str r3, [r7]
|
||||
str r2, [r7, 0x4]
|
||||
lsrs r0, r1, 1
|
||||
movs r1, 0x80
|
||||
lsls r1, 24
|
||||
b _08000DAA
|
||||
_08000D56:
|
||||
b @08000DAA
|
||||
@08000D56:
|
||||
ldr r4, =0x040000d4
|
||||
str r3, [r4]
|
||||
str r2, [r4, 0x4]
|
||||
@ -218,27 +218,27 @@ _08000D56:
|
||||
adds r2, r6
|
||||
subs r1, r6
|
||||
cmp r1, r6
|
||||
bhi _08000D56
|
||||
bhi @08000D56
|
||||
str r3, [r4]
|
||||
str r2, [r4, 0x4]
|
||||
lsrs r0, r1, 1
|
||||
movs r1, 0x80
|
||||
lsls r1, 24
|
||||
_08000D76:
|
||||
@08000D76:
|
||||
orrs r0, r1
|
||||
str r0, [r4, 0x8]
|
||||
ldr r0, [r4, 0x8]
|
||||
b _08000DF0
|
||||
b @08000DF0
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000D88:
|
||||
@08000D88:
|
||||
mov r3, r10
|
||||
adds r0, r5, r3
|
||||
ldr r2, [r0]
|
||||
ldrh r4, [r1, 0x8]
|
||||
add r1, sp, 0x4
|
||||
cmp r4, r6
|
||||
bhi _08000DB2
|
||||
bhi @08000DB2
|
||||
mov r0, r8
|
||||
adds r0, 0xC
|
||||
adds r0, r5, r0
|
||||
@ -249,12 +249,12 @@ _08000D88:
|
||||
lsrs r0, r4, 1
|
||||
movs r1, 0x81
|
||||
lsls r1, 24
|
||||
_08000DAA:
|
||||
@08000DAA:
|
||||
orrs r0, r1
|
||||
str r0, [r7, 0x8]
|
||||
ldr r0, [r7, 0x8]
|
||||
b _08000DF0
|
||||
_08000DB2:
|
||||
b @08000DF0
|
||||
@08000DB2:
|
||||
mov r5, r12
|
||||
ldrb r0, [r5]
|
||||
lsls r0, 4
|
||||
@ -271,7 +271,7 @@ _08000DB2:
|
||||
adds r2, r6
|
||||
subs r4, r6
|
||||
cmp r4, r6
|
||||
bhi _08000DB2
|
||||
bhi @08000DB2
|
||||
ldrb r0, [r5]
|
||||
lsls r0, 4
|
||||
ldr r5, =0x0300001c
|
||||
@ -283,11 +283,11 @@ _08000DB2:
|
||||
lsrs r0, r4, 1
|
||||
movs r1, 0x81
|
||||
lsls r1, 24
|
||||
_08000DEA:
|
||||
@08000DEA:
|
||||
orrs r0, r1
|
||||
str r0, [r3, 0x8]
|
||||
ldr r0, [r3, 0x8]
|
||||
_08000DF0:
|
||||
@08000DF0:
|
||||
ldr r1, =0x03000010
|
||||
mov r3, r12
|
||||
ldrb r0, [r3]
|
||||
@ -320,9 +320,9 @@ _08000DF0:
|
||||
strb r0, [r3]
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bge _08000E34
|
||||
bge @08000E34
|
||||
strb r4, [r3]
|
||||
_08000E34:
|
||||
@08000E34:
|
||||
mov r2, r12
|
||||
ldrb r0, [r2]
|
||||
lsls r0, 4
|
||||
@ -330,9 +330,9 @@ _08000E34:
|
||||
adds r0, r3
|
||||
ldrh r0, [r0, 0x8]
|
||||
cmp r0, 0
|
||||
beq _08000E46
|
||||
b _08000C2E
|
||||
_08000E46:
|
||||
beq @08000E46
|
||||
b @08000C2E
|
||||
@08000E46:
|
||||
add sp, 0xC
|
||||
pop {r3-r5}
|
||||
mov r8, r3
|
||||
@ -346,8 +346,8 @@ _08000E46:
|
||||
thumb_func_end ProcessDma3Requests
|
||||
|
||||
thumb_func_start RequestDma3Copy
|
||||
@ int RequestDma3Copy(void *src, void *dest, u16 size, u8 mode)
|
||||
RequestDma3Copy: @ 8000E68
|
||||
; int RequestDma3Copy(void *src, void *dest, u16 size, u8 mode)
|
||||
RequestDma3Copy: ; 8000E68
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -370,11 +370,11 @@ RequestDma3Copy: @ 8000E68
|
||||
mov r9, r6
|
||||
lsls r0, r2, 4
|
||||
adds r1, r0, r6
|
||||
_08000E94:
|
||||
@08000E94:
|
||||
lsls r3, r2, 4
|
||||
ldrh r0, [r1, 0x8]
|
||||
cmp r0, 0
|
||||
bne _08000ED4
|
||||
bne @08000ED4
|
||||
mov r0, r12
|
||||
str r0, [r1]
|
||||
mov r0, r9
|
||||
@ -384,40 +384,40 @@ _08000E94:
|
||||
str r3, [r0]
|
||||
strh r7, [r1, 0x8]
|
||||
cmp r4, 0x1
|
||||
bne _08000EC0
|
||||
bne @08000EC0
|
||||
strh r4, [r1, 0xA]
|
||||
b _08000EC4
|
||||
b @08000EC4
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000EC0:
|
||||
@08000EC0:
|
||||
movs r0, 0x3
|
||||
strh r0, [r1, 0xA]
|
||||
_08000EC4:
|
||||
@08000EC4:
|
||||
movs r0, 0
|
||||
ldr r1, =0x03000810
|
||||
strb r0, [r1]
|
||||
lsls r0, r2, 16
|
||||
asrs r0, 16
|
||||
b _08000EF0
|
||||
b @08000EF0
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000ED4:
|
||||
@08000ED4:
|
||||
adds r1, 0x10
|
||||
adds r2, 0x1
|
||||
cmp r2, 0x7F
|
||||
ble _08000EE0
|
||||
ble @08000EE0
|
||||
adds r1, r6, 0
|
||||
movs r2, 0
|
||||
_08000EE0:
|
||||
@08000EE0:
|
||||
adds r5, 0x1
|
||||
cmp r5, 0x7F
|
||||
ble _08000E94
|
||||
ble @08000E94
|
||||
movs r0, 0
|
||||
mov r3, r10
|
||||
strb r0, [r3]
|
||||
movs r0, 0x1
|
||||
negs r0, r0
|
||||
_08000EF0:
|
||||
@08000EF0:
|
||||
pop {r3-r5}
|
||||
mov r8, r3
|
||||
mov r9, r4
|
||||
@ -428,8 +428,8 @@ _08000EF0:
|
||||
thumb_func_end RequestDma3Copy
|
||||
|
||||
thumb_func_start RequestDma3Fill
|
||||
@ int RequestDma3Fill(s32 value, void *dest, u16 size, u8 mode)
|
||||
RequestDma3Fill: @ 8000F00
|
||||
; int RequestDma3Fill(s32 value, void *dest, u16 size, u8 mode)
|
||||
RequestDma3Fill: ; 8000F00
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -454,11 +454,11 @@ RequestDma3Fill: @ 8000F00
|
||||
lsls r0, r2, 4
|
||||
adds r0, 0x8
|
||||
adds r1, r0, r4
|
||||
_08000F30:
|
||||
@loop:
|
||||
lsls r3, r2, 4
|
||||
ldrh r0, [r1]
|
||||
cmp r0, 0
|
||||
bne _08000F78
|
||||
bne @08000F78
|
||||
adds r0, r4, 0x4
|
||||
adds r0, r3, r0
|
||||
mov r6, r8
|
||||
@ -471,41 +471,41 @@ _08000F30:
|
||||
mov r3, r9
|
||||
str r3, [r0]
|
||||
cmp r5, 0x1
|
||||
bne _08000F64
|
||||
bne @08000F64
|
||||
movs r0, 0x2
|
||||
b _08000F66
|
||||
b @08000F66
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000F64:
|
||||
@08000F64:
|
||||
movs r0, 0x4
|
||||
_08000F66:
|
||||
@08000F66:
|
||||
strh r0, [r1, 0x2]
|
||||
movs r0, 0
|
||||
ldr r6, =0x03000810
|
||||
strb r0, [r6]
|
||||
lsls r0, r2, 16
|
||||
asrs r0, 16
|
||||
b _08000F96
|
||||
b @08000F96
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000F78:
|
||||
@08000F78:
|
||||
adds r1, 0x10
|
||||
adds r2, 0x1
|
||||
cmp r2, 0x7F
|
||||
ble _08000F86
|
||||
ble @08000F86
|
||||
mov r1, r12
|
||||
adds r1, 0x8
|
||||
movs r2, 0
|
||||
_08000F86:
|
||||
@08000F86:
|
||||
adds r6, 0x1
|
||||
cmp r6, 0x7F
|
||||
ble _08000F30
|
||||
ble @loop
|
||||
movs r0, 0
|
||||
mov r1, r10
|
||||
strb r0, [r1]
|
||||
movs r0, 0x1
|
||||
negs r0, r0
|
||||
_08000F96:
|
||||
@08000F96:
|
||||
pop {r3-r5}
|
||||
mov r8, r3
|
||||
mov r9, r4
|
||||
@ -516,8 +516,8 @@ _08000F96:
|
||||
thumb_func_end RequestDma3Fill
|
||||
|
||||
thumb_func_start CheckForSpaceForDma3Request
|
||||
@ int CheckForSpaceForDma3Request(s16 index)
|
||||
CheckForSpaceForDma3Request: @ 8000FA4
|
||||
; int CheckForSpaceForDma3Request(s16 index)
|
||||
CheckForSpaceForDma3Request: ; 8000FA4
|
||||
push {lr}
|
||||
movs r2, 0
|
||||
lsls r0, 16
|
||||
@ -525,32 +525,32 @@ CheckForSpaceForDma3Request: @ 8000FA4
|
||||
movs r3, 0x1
|
||||
negs r3, r3
|
||||
cmp r1, r3
|
||||
bne _08000FCC
|
||||
bne @08000FCC
|
||||
ldr r1, =0x03000010
|
||||
_08000FB6:
|
||||
@08000FB6:
|
||||
ldrh r0, [r1, 0x8]
|
||||
cmp r0, 0
|
||||
bne _08000FD8
|
||||
bne @08000FD8
|
||||
adds r1, 0x10
|
||||
adds r2, 0x1
|
||||
cmp r2, 0x7F
|
||||
ble _08000FB6
|
||||
_08000FC4:
|
||||
ble @08000FB6
|
||||
@08000FC4:
|
||||
movs r0, 0
|
||||
b _08000FDC
|
||||
b @08000FDC
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000FCC:
|
||||
@08000FCC:
|
||||
ldr r0, =0x03000010
|
||||
lsls r1, 4
|
||||
adds r1, r0
|
||||
ldrh r0, [r1, 0x8]
|
||||
cmp r0, 0
|
||||
beq _08000FC4
|
||||
_08000FD8:
|
||||
beq @08000FC4
|
||||
@08000FD8:
|
||||
movs r0, 0x1
|
||||
negs r0, r0
|
||||
_08000FDC:
|
||||
@08000FDC:
|
||||
pop {r1}
|
||||
bx r1
|
||||
.align 2, 0
|
||||
|
271660
asm/emerald.s
271660
asm/emerald.s
File diff suppressed because it is too large
Load Diff
1386
asm/gpu_bg.s
1386
asm/gpu_bg.s
File diff suppressed because it is too large
Load Diff
1134
asm/gpu_obj.s
1134
asm/gpu_obj.s
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
thumb_func_start lcd_io_copy_queue_clean
|
||||
@ void lcd_io_copy_queue_clean()
|
||||
lcd_io_copy_queue_clean: @ 8000FE4
|
||||
; void lcd_io_copy_queue_clean()
|
||||
lcd_io_copy_queue_clean: ; 8000FE4
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
@ -14,7 +14,7 @@ lcd_io_copy_queue_clean: @ 8000FE4
|
||||
movs r5, 0
|
||||
ldr r4, =0x03000878
|
||||
movs r3, 0xFF
|
||||
_08000FFE:
|
||||
@08000FFE:
|
||||
adds r0, r2, r6
|
||||
strb r5, [r0]
|
||||
adds r1, r2, r4
|
||||
@ -23,7 +23,7 @@ _08000FFE:
|
||||
strb r0, [r1]
|
||||
adds r2, 0x1
|
||||
cmp r2, 0x5F
|
||||
ble _08000FFE
|
||||
ble @08000FFE
|
||||
movs r0, 0
|
||||
strb r0, [r7]
|
||||
mov r1, r12
|
||||
@ -41,13 +41,13 @@ _08000FFE:
|
||||
thumb_func_end lcd_io_copy_queue_clean
|
||||
|
||||
thumb_func_start lcd_io_buffer_to_hardware
|
||||
@ void lcd_io_buffer_to_hardware(u8 reg)
|
||||
lcd_io_buffer_to_hardware: @ 800103C
|
||||
; void lcd_io_buffer_to_hardware(u8 reg)
|
||||
lcd_io_buffer_to_hardware: ; 800103C
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r2, r0, 24
|
||||
cmp r2, 0x4
|
||||
bne _08001068
|
||||
bne @08001068
|
||||
ldr r2, =0x04000004
|
||||
ldrh r1, [r2]
|
||||
ldr r0, =0x0000ffe7
|
||||
@ -58,10 +58,10 @@ lcd_io_buffer_to_hardware: @ 800103C
|
||||
ldrh r1, [r1]
|
||||
orrs r0, r1
|
||||
strh r0, [r2]
|
||||
b _08001076
|
||||
b @08001076
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08001068:
|
||||
@08001068:
|
||||
movs r0, 0x80
|
||||
lsls r0, 19
|
||||
adds r0, r2, r0
|
||||
@ -69,7 +69,7 @@ _08001068:
|
||||
adds r1, r2, r1
|
||||
ldrh r1, [r1]
|
||||
strh r1, [r0]
|
||||
_08001076:
|
||||
@08001076:
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
@ -77,27 +77,27 @@ _08001076:
|
||||
thumb_func_end lcd_io_buffer_to_hardware
|
||||
|
||||
thumb_func_start lcd_io_copy_queue_process
|
||||
@ void lcd_io_copy_queue_process()
|
||||
lcd_io_copy_queue_process: @ 8001080
|
||||
; void lcd_io_copy_queue_process()
|
||||
lcd_io_copy_queue_process: ; 8001080
|
||||
push {r4,r5,lr}
|
||||
ldr r0, =0x030008d8
|
||||
ldrb r0, [r0]
|
||||
cmp r0, 0
|
||||
bne _080010A4
|
||||
bne @080010A4
|
||||
movs r5, 0
|
||||
_0800108C:
|
||||
@0800108C:
|
||||
ldr r0, =0x03000878
|
||||
adds r4, r5, r0
|
||||
ldrb r0, [r4]
|
||||
cmp r0, 0xFF
|
||||
beq _080010A4
|
||||
beq @080010A4
|
||||
bl lcd_io_buffer_to_hardware
|
||||
movs r0, 0xFF
|
||||
strb r0, [r4]
|
||||
adds r5, 0x1
|
||||
cmp r5, 0x5F
|
||||
ble _0800108C
|
||||
_080010A4:
|
||||
ble @0800108C
|
||||
@080010A4:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
@ -106,15 +106,15 @@ _080010A4:
|
||||
thumb_func_end lcd_io_copy_queue_process
|
||||
|
||||
thumb_func_start lcd_io_set
|
||||
@ void lcd_io_set(u8 reg, u16 value)
|
||||
lcd_io_set: @ 80010B4
|
||||
; void lcd_io_set(u8 reg, u16 value)
|
||||
lcd_io_set: ; 80010B4
|
||||
push {r4,r5,lr}
|
||||
lsls r0, 24
|
||||
lsrs r4, r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
cmp r4, 0x5F
|
||||
bhi _08001130
|
||||
bhi @08001130
|
||||
ldr r0, =0x03000818
|
||||
adds r0, r4, r0
|
||||
strh r1, [r0]
|
||||
@ -126,25 +126,25 @@ lcd_io_set: @ 80010B4
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
cmp r0, 0x40
|
||||
bls _080010E8
|
||||
bls @080010E8
|
||||
movs r0, 0x80
|
||||
lsls r0, 19
|
||||
ldrh r1, [r0]
|
||||
movs r0, 0x80
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _080010FE
|
||||
_080010E8:
|
||||
beq @080010FE
|
||||
@080010E8:
|
||||
adds r0, r4, 0
|
||||
bl lcd_io_buffer_to_hardware
|
||||
b _08001130
|
||||
b @08001130
|
||||
.align 2, 0
|
||||
.pool
|
||||
_080010F8:
|
||||
@080010F8:
|
||||
movs r0, 0
|
||||
strb r0, [r5]
|
||||
b _08001130
|
||||
_080010FE:
|
||||
b @08001130
|
||||
@080010FE:
|
||||
ldr r2, =0x030008d8
|
||||
movs r0, 0x1
|
||||
strb r0, [r2]
|
||||
@ -154,25 +154,25 @@ _080010FE:
|
||||
adds r5, r2, 0
|
||||
adds r2, r0, 0
|
||||
cmp r1, 0xFF
|
||||
beq _08001128
|
||||
beq @08001128
|
||||
adds r1, r2, 0
|
||||
_08001114:
|
||||
@08001114:
|
||||
ldrb r0, [r1]
|
||||
cmp r0, r4
|
||||
beq _080010F8
|
||||
beq @080010F8
|
||||
adds r1, 0x1
|
||||
adds r3, 0x1
|
||||
cmp r3, 0x5F
|
||||
bgt _08001128
|
||||
bgt @08001128
|
||||
ldrb r0, [r1]
|
||||
cmp r0, 0xFF
|
||||
bne _08001114
|
||||
_08001128:
|
||||
bne @08001114
|
||||
@08001128:
|
||||
adds r0, r3, r2
|
||||
movs r1, 0
|
||||
strb r4, [r0]
|
||||
strb r1, [r5]
|
||||
_08001130:
|
||||
@08001130:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
@ -181,15 +181,15 @@ _08001130:
|
||||
thumb_func_end lcd_io_set
|
||||
|
||||
thumb_func_start lcd_io_set_forced_blank
|
||||
@ void lcd_io_set_forced_blank(u8 reg, u16 value)
|
||||
lcd_io_set_forced_blank: @ 8001140
|
||||
; void lcd_io_set_forced_blank(u8 reg, u16 value)
|
||||
lcd_io_set_forced_blank: ; 8001140
|
||||
push {r4,r5,lr}
|
||||
lsls r0, 24
|
||||
lsrs r4, r0, 24
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
cmp r4, 0x5F
|
||||
bhi _080011A8
|
||||
bhi @080011A8
|
||||
ldr r0, =0x03000818
|
||||
adds r0, r4, r0
|
||||
strh r1, [r0]
|
||||
@ -199,17 +199,17 @@ lcd_io_set_forced_blank: @ 8001140
|
||||
movs r0, 0x80
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08001176
|
||||
beq @08001176
|
||||
adds r0, r4, 0
|
||||
bl lcd_io_buffer_to_hardware
|
||||
b _080011A8
|
||||
b @080011A8
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08001170:
|
||||
@08001170:
|
||||
movs r0, 0
|
||||
strb r0, [r5]
|
||||
b _080011A8
|
||||
_08001176:
|
||||
b @080011A8
|
||||
@08001176:
|
||||
ldr r2, =0x030008d8
|
||||
movs r0, 0x1
|
||||
strb r0, [r2]
|
||||
@ -219,25 +219,25 @@ _08001176:
|
||||
adds r5, r2, 0
|
||||
adds r2, r0, 0
|
||||
cmp r1, 0xFF
|
||||
beq _080011A0
|
||||
beq @080011A0
|
||||
adds r1, r2, 0
|
||||
_0800118C:
|
||||
@0800118C:
|
||||
ldrb r0, [r1]
|
||||
cmp r0, r4
|
||||
beq _08001170
|
||||
beq @08001170
|
||||
adds r1, 0x1
|
||||
adds r3, 0x1
|
||||
cmp r3, 0x5F
|
||||
bgt _080011A0
|
||||
bgt @080011A0
|
||||
ldrb r0, [r1]
|
||||
cmp r0, 0xFF
|
||||
bne _0800118C
|
||||
_080011A0:
|
||||
bne @0800118C
|
||||
@080011A0:
|
||||
adds r0, r3, r2
|
||||
movs r1, 0
|
||||
strb r4, [r0]
|
||||
strb r1, [r5]
|
||||
_080011A8:
|
||||
@080011A8:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
@ -246,32 +246,32 @@ _080011A8:
|
||||
thumb_func_end lcd_io_set_forced_blank
|
||||
|
||||
thumb_func_start lcd_io_get
|
||||
@ u16 lcd_io_get(u8 reg)
|
||||
lcd_io_get: @ 80011B8
|
||||
; u16 lcd_io_get(u8 reg)
|
||||
lcd_io_get: ; 80011B8
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
adds r1, r0, 0
|
||||
cmp r1, 0x4
|
||||
bne _080011CC
|
||||
bne @080011CC
|
||||
ldr r0, =0x04000004
|
||||
b _080011DE
|
||||
b @080011DE
|
||||
.align 2, 0
|
||||
.pool
|
||||
_080011CC:
|
||||
@080011CC:
|
||||
cmp r1, 0x6
|
||||
beq _080011DC
|
||||
beq @080011DC
|
||||
ldr r0, =0x03000818
|
||||
adds r0, r1, r0
|
||||
ldrh r0, [r0]
|
||||
b _080011E0
|
||||
b @080011E0
|
||||
.align 2, 0
|
||||
.pool
|
||||
_080011DC:
|
||||
@080011DC:
|
||||
ldr r0, =0x04000006
|
||||
_080011DE:
|
||||
@080011DE:
|
||||
ldrh r0, [r0]
|
||||
_080011E0:
|
||||
@080011E0:
|
||||
pop {r1}
|
||||
bx r1
|
||||
.align 2, 0
|
||||
@ -279,8 +279,8 @@ _080011E0:
|
||||
thumb_func_end lcd_io_get
|
||||
|
||||
thumb_func_start lcd_io_set_bits
|
||||
@ void lcd_io_set_bits(u8 reg, u16 mask)
|
||||
lcd_io_set_bits: @ 80011E8
|
||||
; void lcd_io_set_bits(u8 reg, u16 mask)
|
||||
lcd_io_set_bits: ; 80011E8
|
||||
push {lr}
|
||||
adds r2, r1, 0
|
||||
lsls r0, 24
|
||||
@ -299,8 +299,8 @@ lcd_io_set_bits: @ 80011E8
|
||||
thumb_func_end lcd_io_set_bits
|
||||
|
||||
thumb_func_start lcd_io_clear_bits
|
||||
@ void lcd_io_clear_bits(u8 reg, u16 mask)
|
||||
lcd_io_clear_bits: @ 8001208
|
||||
; void lcd_io_clear_bits(u8 reg, u16 mask)
|
||||
lcd_io_clear_bits: ; 8001208
|
||||
push {lr}
|
||||
adds r2, r1, 0
|
||||
lsls r0, 24
|
||||
@ -319,13 +319,13 @@ lcd_io_clear_bits: @ 8001208
|
||||
thumb_func_end lcd_io_clear_bits
|
||||
|
||||
thumb_func_start update_hardware_IE
|
||||
@ void update_hardware_IE()
|
||||
update_hardware_IE: @ 8001228
|
||||
; void update_hardware_IE()
|
||||
update_hardware_IE: ; 8001228
|
||||
push {r4,r5,lr}
|
||||
ldr r5, =0x030008d9
|
||||
ldrb r0, [r5]
|
||||
cmp r0, 0
|
||||
beq _08001246
|
||||
beq @08001246
|
||||
ldr r2, =0x04000208
|
||||
ldrh r1, [r2]
|
||||
movs r4, 0
|
||||
@ -336,7 +336,7 @@ update_hardware_IE: @ 8001228
|
||||
strh r0, [r3]
|
||||
strh r1, [r2]
|
||||
strb r4, [r5]
|
||||
_08001246:
|
||||
@08001246:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
@ -345,8 +345,8 @@ _08001246:
|
||||
thumb_func_end update_hardware_IE
|
||||
|
||||
thumb_func_start enable_irqs
|
||||
@ void enable_irqs(u16 value)
|
||||
enable_irqs: @ 800125C
|
||||
; void enable_irqs(u16 value)
|
||||
enable_irqs: ; 800125C
|
||||
push {r4,lr}
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
@ -368,8 +368,8 @@ enable_irqs: @ 800125C
|
||||
thumb_func_end enable_irqs
|
||||
|
||||
thumb_func_start disable_irqs
|
||||
@ void disable_irqs(u16 value)
|
||||
disable_irqs: @ 8001288
|
||||
; void disable_irqs(u16 value)
|
||||
disable_irqs: ; 8001288
|
||||
push {r4,lr}
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
@ -391,8 +391,8 @@ disable_irqs: @ 8001288
|
||||
thumb_func_end disable_irqs
|
||||
|
||||
thumb_func_start dispstat_set_vblank_hblank_irqs
|
||||
@ void dispstat_set_vblank_hblank_irqs(u16 value)
|
||||
dispstat_set_vblank_hblank_irqs: @ 80012B4
|
||||
; void dispstat_set_vblank_hblank_irqs(u16 value)
|
||||
dispstat_set_vblank_hblank_irqs: ; 80012B4
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
lsls r4, 16
|
||||
@ -411,15 +411,15 @@ dispstat_set_vblank_hblank_irqs: @ 80012B4
|
||||
movs r0, 0x2
|
||||
ands r0, r4
|
||||
cmp r0, 0
|
||||
beq _080012E0
|
||||
beq @080012E0
|
||||
movs r0, 0x10
|
||||
orrs r1, r0
|
||||
_080012E0:
|
||||
@080012E0:
|
||||
cmp r2, r1
|
||||
beq _080012EA
|
||||
beq @080012EA
|
||||
movs r0, 0x4
|
||||
bl lcd_io_set
|
||||
_080012EA:
|
||||
@080012EA:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
|
@ -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
|
||||
|
@ -1,86 +1,85 @@
|
||||
thumb_func_start ArcTan2
|
||||
ArcTan2: @ 82E7078
|
||||
ArcTan2: ; 82E7078
|
||||
swi 0xA
|
||||
bx lr
|
||||
thumb_func_end ArcTan2
|
||||
|
||||
thumb_func_start BgAffineSet
|
||||
@ void BgAffineSet(BgAffineSet_src_data *src, BgAffineSet_dest_data *dest, int entry_count)
|
||||
BgAffineSet: @ 82E707C
|
||||
; void BgAffineSet(BgAffineSet_src_data *src, BgAffineSet_dest_data *dest, int entry_count)
|
||||
BgAffineSet: ; 82E707C
|
||||
swi 0xE
|
||||
bx lr
|
||||
thumb_func_end BgAffineSet
|
||||
|
||||
thumb_func_start CpuFastSet
|
||||
@ void CpuFastSet(void *src, void *dest, unsigned int mode)
|
||||
CpuFastSet: @ 82E7080
|
||||
; void CpuFastSet(void *src, void *dest, unsigned int mode)
|
||||
CpuFastSet: ; 82E7080
|
||||
swi 0xC
|
||||
bx lr
|
||||
thumb_func_end CpuFastSet
|
||||
|
||||
thumb_func_start CpuSet
|
||||
@ void CpuSet(void *src, void *dest, unsigned int mode)
|
||||
CpuSet: @ 82E7084
|
||||
; void CpuSet(void *src, void *dest, unsigned int mode)
|
||||
CpuSet: ; 82E7084
|
||||
swi 0xB
|
||||
bx lr
|
||||
thumb_func_end CpuSet
|
||||
|
||||
thumb_func_start Div
|
||||
Div: @ 82E7088
|
||||
Div: ; 82E7088
|
||||
swi 0x6
|
||||
bx lr
|
||||
thumb_func_end Div
|
||||
|
||||
thumb_func_start LZ77UnCompVram
|
||||
@ void LZ77UnCompVram(void *src, void *dest)
|
||||
LZ77UnCompVram: @ 82E708C
|
||||
; void LZ77UnCompVram(void *src, void *dest)
|
||||
LZ77UnCompVram: ; 82E708C
|
||||
swi 0x12
|
||||
bx lr
|
||||
thumb_func_end LZ77UnCompVram
|
||||
|
||||
thumb_func_start LZ77UnCompWram
|
||||
@ void LZ77UnCompWram(void *src, void *dest)
|
||||
LZ77UnCompWram: @ 82E7090
|
||||
; void LZ77UnCompWram(void *src, void *dest)
|
||||
LZ77UnCompWram: ; 82E7090
|
||||
swi 0x11
|
||||
bx lr
|
||||
thumb_func_end LZ77UnCompWram
|
||||
|
||||
thumb_func_start MultiBoot
|
||||
MultiBoot: @ 82E7094
|
||||
MultiBoot: ; 82E7094
|
||||
movs r1, 0x1
|
||||
swi 0x25
|
||||
bx lr
|
||||
thumb_func_end MultiBoot
|
||||
|
||||
thumb_func_start ObjAffineSet
|
||||
ObjAffineSet: @ 82E709A
|
||||
_082E709C:
|
||||
ObjAffineSet: ; 82E709C
|
||||
swi 0xF
|
||||
bx lr
|
||||
thumb_func_end ObjAffineSet
|
||||
|
||||
thumb_func_start RLUnCompVram
|
||||
RLUnCompVram: @ 82E70A0
|
||||
RLUnCompVram: ; 82E70A0
|
||||
swi 0x15
|
||||
bx lr
|
||||
thumb_func_end RLUnCompVram
|
||||
|
||||
thumb_func_start RLUnCompWram
|
||||
RLUnCompWram: @ 82E70A4
|
||||
RLUnCompWram: ; 82E70A4
|
||||
swi 0x14
|
||||
bx lr
|
||||
thumb_func_end RLUnCompWram
|
||||
|
||||
thumb_func_start RegisterRamReset
|
||||
@ void RegisterRamReset(int ResetFlags)
|
||||
RegisterRamReset: @ 82E70A8
|
||||
; void RegisterRamReset(int ResetFlags)
|
||||
RegisterRamReset: ; 82E70A8
|
||||
swi 0x1
|
||||
bx lr
|
||||
thumb_func_end RegisterRamReset
|
||||
|
||||
thumb_func_start SoftReset
|
||||
@ void SoftReset()
|
||||
SoftReset: @ 82E70AC
|
||||
; void SoftReset()
|
||||
SoftReset: ; 82E70AC
|
||||
ldr r3, _082E70BC
|
||||
movs r2, 0
|
||||
strb r2, [r3]
|
||||
@ -94,15 +93,15 @@ _082E70C0: .4byte 0x03007f00
|
||||
thumb_func_end SoftReset
|
||||
|
||||
thumb_func_start Sqrt
|
||||
@ s16 Sqrt(int)
|
||||
Sqrt: @ 82E70C4
|
||||
; s16 Sqrt(int)
|
||||
Sqrt: ; 82E70C4
|
||||
swi 0x8
|
||||
bx lr
|
||||
thumb_func_end Sqrt
|
||||
|
||||
thumb_func_start VBlankIntrWait
|
||||
@ void VBlankIntrWait()
|
||||
VBlankIntrWait: @ 82E70C8
|
||||
; void VBlankIntrWait()
|
||||
VBlankIntrWait: ; 82E70C8
|
||||
movs r2, 0
|
||||
swi 0x5
|
||||
bx lr
|
||||
|
164
asm/libgcc.s
164
asm/libgcc.s
@ -1,97 +1,97 @@
|
||||
thumb_func_start _call_via_r0
|
||||
_call_via_r0: @ 82E70D0
|
||||
_call_via_r0: ; 82E70D0
|
||||
bx r0
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r0
|
||||
|
||||
thumb_func_start _call_via_r1
|
||||
_call_via_r1: @ 82E70D4
|
||||
_call_via_r1: ; 82E70D4
|
||||
bx r1
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r1
|
||||
|
||||
thumb_func_start _call_via_r2
|
||||
@ void __usercall_call_via_r2(void ( *func)()<R2>)
|
||||
_call_via_r2: @ 82E70D8
|
||||
; void __usercall_call_via_r2(void ( *func)()<R2>)
|
||||
_call_via_r2: ; 82E70D8
|
||||
bx r2
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r2
|
||||
|
||||
thumb_func_start _call_via_r3
|
||||
_call_via_r3: @ 82E70DC
|
||||
_call_via_r3: ; 82E70DC
|
||||
bx r3
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r3
|
||||
|
||||
thumb_func_start _call_via_r4
|
||||
_call_via_r4: @ 82E70E0
|
||||
_call_via_r4: ; 82E70E0
|
||||
bx r4
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r4
|
||||
|
||||
thumb_func_start _call_via_r5
|
||||
@ void __usercall_call_via_r5(void ( *func)()<R5>)
|
||||
_call_via_r5: @ 82E70E4
|
||||
; void __usercall_call_via_r5(void ( *func)()<R5>)
|
||||
_call_via_r5: ; 82E70E4
|
||||
bx r5
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r5
|
||||
|
||||
thumb_func_start _call_via_r6
|
||||
_call_via_r6: @ 82E70E8
|
||||
_call_via_r6: ; 82E70E8
|
||||
bx r6
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r6
|
||||
|
||||
thumb_func_start _call_via_r7
|
||||
_call_via_r7: @ 82E70EC
|
||||
_call_via_r7: ; 82E70EC
|
||||
bx r7
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r7
|
||||
|
||||
thumb_func_start _call_via_r8
|
||||
_call_via_r8: @ 82E70F0
|
||||
_call_via_r8: ; 82E70F0
|
||||
bx r8
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r8
|
||||
|
||||
thumb_func_start _call_via_r9
|
||||
_call_via_r9: @ 82E70F4
|
||||
_call_via_r9: ; 82E70F4
|
||||
bx r9
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_r9
|
||||
|
||||
thumb_func_start _call_via_sl
|
||||
_call_via_sl: @ 82E70F8
|
||||
_call_via_sl: ; 82E70F8
|
||||
bx r10
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_sl
|
||||
|
||||
thumb_func_start _call_via_fp
|
||||
_call_via_fp: @ 82E70FC
|
||||
_call_via_fp: ; 82E70FC
|
||||
bx r11
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_fp
|
||||
|
||||
thumb_func_start _call_via_ip
|
||||
_call_via_ip: @ 82E7100
|
||||
_call_via_ip: ; 82E7100
|
||||
bx r12
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_ip
|
||||
|
||||
thumb_func_start _call_via_sp
|
||||
_call_via_sp: @ 82E7104
|
||||
_call_via_sp: ; 82E7104
|
||||
bx sp
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_sp
|
||||
|
||||
thumb_func_start _call_via_lr
|
||||
_call_via_lr: @ 82E7108
|
||||
_call_via_lr: ; 82E7108
|
||||
bx lr
|
||||
mov r8, r8
|
||||
thumb_func_end _call_via_lr
|
||||
|
||||
thumb_func_start __divdi3
|
||||
__divdi3: @ 82E710C
|
||||
__divdi3: ; 82E710C
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -645,8 +645,8 @@ _082E753C: .4byte 0x0000ffff
|
||||
thumb_func_end __divdi3
|
||||
|
||||
thumb_func_start __divsi3
|
||||
@ int __divsi3(int dividend, int divisor)
|
||||
__divsi3: @ 82E7540
|
||||
; int __divsi3(int dividend, int divisor)
|
||||
__divsi3: ; 82E7540
|
||||
cmp r1, 0
|
||||
beq _082E75C8
|
||||
push {r4}
|
||||
@ -735,12 +735,12 @@ _082E75C8:
|
||||
thumb_func_end __divsi3
|
||||
|
||||
thumb_func_start nullsub_1
|
||||
nullsub_1: @ 82E75D4
|
||||
nullsub_1: ; 82E75D4
|
||||
mov pc, lr
|
||||
thumb_func_end nullsub_1
|
||||
|
||||
thumb_func_start __fixunsdfsi
|
||||
__fixunsdfsi: @ 82E75D8
|
||||
__fixunsdfsi: ; 82E75D8
|
||||
push {r4,r5,lr}
|
||||
adds r5, r1, 0
|
||||
adds r4, r0, 0
|
||||
@ -774,7 +774,7 @@ _082E7618: .4byte 0x00000000
|
||||
thumb_func_end __fixunsdfsi
|
||||
|
||||
thumb_func_start __fixunssfsi
|
||||
__fixunssfsi: @ 82E761C
|
||||
__fixunssfsi: ; 82E761C
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r1, _082E7634
|
||||
@ -801,7 +801,7 @@ _082E764C: .4byte 0xcf000000
|
||||
thumb_func_end __fixunssfsi
|
||||
|
||||
thumb_func_start __modsi3
|
||||
__modsi3: @ 82E7650
|
||||
__modsi3: ; 82E7650
|
||||
movs r3, 0x1
|
||||
cmp r1, 0
|
||||
beq _082E7714
|
||||
@ -923,7 +923,7 @@ _082E7714:
|
||||
thumb_func_end __modsi3
|
||||
|
||||
thumb_func_start __muldi3
|
||||
__muldi3: @ 82E7720
|
||||
__muldi3: ; 82E7720
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x10
|
||||
str r0, [sp]
|
||||
@ -984,7 +984,7 @@ _082E778C: .4byte 0x0000ffff
|
||||
thumb_func_end __muldi3
|
||||
|
||||
thumb_func_start __udivdi3
|
||||
__udivdi3: @ 82E7790
|
||||
__udivdi3: ; 82E7790
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -1487,8 +1487,8 @@ _082E7B64: .4byte 0x0000ffff
|
||||
thumb_func_end __udivdi3
|
||||
|
||||
thumb_func_start __udivsi3
|
||||
@ unsigned int __udivsi3(unsigned int dividend, unsigned int divisor)
|
||||
__udivsi3: @ 82E7B68
|
||||
; unsigned int __udivsi3(unsigned int dividend, unsigned int divisor)
|
||||
__udivsi3: ; 82E7B68
|
||||
cmp r1, 0
|
||||
beq _082E7BD6
|
||||
movs r3, 0x1
|
||||
@ -1561,8 +1561,8 @@ _082E7BD6:
|
||||
thumb_func_end __udivsi3
|
||||
|
||||
thumb_func_start __umodsi3
|
||||
@ unsigned int __umodsi3(unsigned int dividend, unsigned int divisor)
|
||||
__umodsi3: @ 82E7BE0
|
||||
; unsigned int __umodsi3(unsigned int dividend, unsigned int divisor)
|
||||
__umodsi3: ; 82E7BE0
|
||||
cmp r1, 0
|
||||
beq _082E7C96
|
||||
movs r3, 0x1
|
||||
@ -1676,7 +1676,7 @@ _082E7C96:
|
||||
thumb_func_end __umodsi3
|
||||
|
||||
thumb_func_start __pack_d
|
||||
__pack_d: @ 82E7CA0
|
||||
__pack_d: ; 82E7CA0
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x8
|
||||
adds r1, r0, 0
|
||||
@ -1849,7 +1849,7 @@ _082E7DE4: .4byte 0xffff800f
|
||||
thumb_func_end __pack_d
|
||||
|
||||
thumb_func_start __unpack_d
|
||||
__unpack_d: @ 82E7DE8
|
||||
__unpack_d: ; 82E7DE8
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x8
|
||||
adds r2, r0, 0
|
||||
@ -1965,7 +1965,7 @@ _082E7EBC: .4byte 0x10000000
|
||||
thumb_func_end __unpack_d
|
||||
|
||||
thumb_func_start __fpadd_parts_d
|
||||
__fpadd_parts_d: @ 82E7EC0
|
||||
__fpadd_parts_d: ; 82E7EC0
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -2307,8 +2307,8 @@ _082E8128: .4byte 0x1fffffff
|
||||
thumb_func_end __fpadd_parts_d
|
||||
|
||||
thumb_func_start __adddf3
|
||||
@ double __adddf3(double arg_a, double arg_b)
|
||||
__adddf3: @ 82E812C
|
||||
; double __adddf3(double arg_a, double arg_b)
|
||||
__adddf3: ; 82E812C
|
||||
push {r4,lr}
|
||||
sub sp, 0x4C
|
||||
str r0, [sp, 0x3C]
|
||||
@ -2332,7 +2332,7 @@ __adddf3: @ 82E812C
|
||||
thumb_func_end __adddf3
|
||||
|
||||
thumb_func_start __subdf3
|
||||
__subdf3: @ 82E815C
|
||||
__subdf3: ; 82E815C
|
||||
push {r4,lr}
|
||||
sub sp, 0x4C
|
||||
str r0, [sp, 0x3C]
|
||||
@ -2360,7 +2360,7 @@ __subdf3: @ 82E815C
|
||||
thumb_func_end __subdf3
|
||||
|
||||
thumb_func_start __muldf3
|
||||
__muldf3: @ 82E8194
|
||||
__muldf3: ; 82E8194
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -2722,7 +2722,7 @@ _082E8438: .4byte 0x0fffffff
|
||||
thumb_func_end __muldf3
|
||||
|
||||
thumb_func_start __divdf3
|
||||
__divdf3: @ 82E843C
|
||||
__divdf3: ; 82E843C
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x48
|
||||
str r0, [sp, 0x28]
|
||||
@ -2939,7 +2939,7 @@ _082E85C0: .4byte 0x10000000
|
||||
thumb_func_end __divdf3
|
||||
|
||||
thumb_func_start __fpcmp_parts_d
|
||||
__fpcmp_parts_d: @ 82E85C4
|
||||
__fpcmp_parts_d: ; 82E85C4
|
||||
push {r4-r6,lr}
|
||||
adds r5, r0, 0
|
||||
adds r6, r1, 0
|
||||
@ -3096,7 +3096,7 @@ _082E86C0:
|
||||
thumb_func_end __fpcmp_parts_d
|
||||
|
||||
thumb_func_start __cmpdf2
|
||||
__cmpdf2: @ 82E86C4
|
||||
__cmpdf2: ; 82E86C4
|
||||
push {r4,lr}
|
||||
sub sp, 0x38
|
||||
str r0, [sp, 0x28]
|
||||
@ -3118,7 +3118,7 @@ __cmpdf2: @ 82E86C4
|
||||
thumb_func_end __cmpdf2
|
||||
|
||||
thumb_func_start __eqdf2
|
||||
__eqdf2: @ 82E86F0
|
||||
__eqdf2: ; 82E86F0
|
||||
push {r4,lr}
|
||||
sub sp, 0x38
|
||||
str r0, [sp, 0x28]
|
||||
@ -3161,7 +3161,7 @@ _082E8736:
|
||||
thumb_func_end __eqdf2
|
||||
|
||||
thumb_func_start __nedf2
|
||||
__nedf2: @ 82E873C
|
||||
__nedf2: ; 82E873C
|
||||
push {r4,lr}
|
||||
sub sp, 0x38
|
||||
str r0, [sp, 0x28]
|
||||
@ -3204,7 +3204,7 @@ _082E8782:
|
||||
thumb_func_end __nedf2
|
||||
|
||||
thumb_func_start __gtdf2
|
||||
__gtdf2: @ 82E8788
|
||||
__gtdf2: ; 82E8788
|
||||
push {r4,lr}
|
||||
sub sp, 0x38
|
||||
str r0, [sp, 0x28]
|
||||
@ -3248,8 +3248,8 @@ _082E87D0:
|
||||
thumb_func_end __gtdf2
|
||||
|
||||
thumb_func_start __gedf2
|
||||
@ int __gedf2(double arg_a, double arg_b)
|
||||
__gedf2: @ 82E87D4
|
||||
; int __gedf2(double arg_a, double arg_b)
|
||||
__gedf2: ; 82E87D4
|
||||
push {r4,lr}
|
||||
sub sp, 0x38
|
||||
str r0, [sp, 0x28]
|
||||
@ -3293,7 +3293,7 @@ _082E881C:
|
||||
thumb_func_end __gedf2
|
||||
|
||||
thumb_func_start __ltdf2
|
||||
__ltdf2: @ 82E8820
|
||||
__ltdf2: ; 82E8820
|
||||
push {r4,lr}
|
||||
sub sp, 0x38
|
||||
str r0, [sp, 0x28]
|
||||
@ -3336,7 +3336,7 @@ _082E8866:
|
||||
thumb_func_end __ltdf2
|
||||
|
||||
thumb_func_start __ledf2
|
||||
__ledf2: @ 82E886C
|
||||
__ledf2: ; 82E886C
|
||||
push {r4,lr}
|
||||
sub sp, 0x38
|
||||
str r0, [sp, 0x28]
|
||||
@ -3379,7 +3379,7 @@ _082E88B2:
|
||||
thumb_func_end __ledf2
|
||||
|
||||
thumb_func_start __floatsidf
|
||||
__floatsidf: @ 82E88B8
|
||||
__floatsidf: ; 82E88B8
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x14
|
||||
adds r2, r0, 0
|
||||
@ -3449,8 +3449,8 @@ _082E8930: .4byte 0x0fffffff
|
||||
thumb_func_end __floatsidf
|
||||
|
||||
thumb_func_start __fixdfsi
|
||||
@ int __fixdfsi(double arg_a)
|
||||
__fixdfsi: @ 82E8934
|
||||
; int __fixdfsi(double arg_a)
|
||||
__fixdfsi: ; 82E8934
|
||||
push {lr}
|
||||
sub sp, 0x1C
|
||||
str r0, [sp, 0x14]
|
||||
@ -3517,7 +3517,7 @@ _082E89A2:
|
||||
thumb_func_end __fixdfsi
|
||||
|
||||
thumb_func_start __negdf2
|
||||
__negdf2: @ 82E89A8
|
||||
__negdf2: ; 82E89A8
|
||||
push {lr}
|
||||
sub sp, 0x1C
|
||||
str r0, [sp, 0x14]
|
||||
@ -3539,7 +3539,7 @@ _082E89C2:
|
||||
thumb_func_end __negdf2
|
||||
|
||||
thumb_func_start __make_dp
|
||||
__make_dp: @ 82E89D0
|
||||
__make_dp: ; 82E89D0
|
||||
sub sp, 0x4
|
||||
push {r4,lr}
|
||||
sub sp, 0x14
|
||||
@ -3561,7 +3561,7 @@ __make_dp: @ 82E89D0
|
||||
thumb_func_end __make_dp
|
||||
|
||||
thumb_func_start __truncdfsf2
|
||||
__truncdfsf2: @ 82E89F8
|
||||
__truncdfsf2: ; 82E89F8
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x1C
|
||||
str r0, [sp, 0x14]
|
||||
@ -3598,7 +3598,7 @@ _082E8A38: .4byte 0x3fffffff
|
||||
thumb_func_end __truncdfsf2
|
||||
|
||||
thumb_func_start __pack_f
|
||||
__pack_f: @ 82E8A3C
|
||||
__pack_f: ; 82E8A3C
|
||||
push {r4-r6,lr}
|
||||
ldr r2, [r0, 0xC]
|
||||
ldr r6, [r0, 0x4]
|
||||
@ -3704,7 +3704,7 @@ _082E8AF0: .4byte 0x7fffffff
|
||||
thumb_func_end __pack_f
|
||||
|
||||
thumb_func_start __unpack_f
|
||||
__unpack_f: @ 82E8AF4
|
||||
__unpack_f: ; 82E8AF4
|
||||
push {r4,lr}
|
||||
adds r3, r1, 0
|
||||
ldr r0, [r0]
|
||||
@ -3777,7 +3777,7 @@ _082E8B6C:
|
||||
thumb_func_end __unpack_f
|
||||
|
||||
thumb_func_start __fpadd_parts_f
|
||||
__fpadd_parts_f: @ 82E8B70
|
||||
__fpadd_parts_f: ; 82E8B70
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
@ -4000,7 +4000,7 @@ _082E8CE4:
|
||||
thumb_func_end __fpadd_parts_f
|
||||
|
||||
thumb_func_start __addsf3
|
||||
__addsf3: @ 82E8CEC
|
||||
__addsf3: ; 82E8CEC
|
||||
push {r4,lr}
|
||||
sub sp, 0x38
|
||||
str r0, [sp, 0x30]
|
||||
@ -4022,7 +4022,7 @@ __addsf3: @ 82E8CEC
|
||||
thumb_func_end __addsf3
|
||||
|
||||
thumb_func_start __subsf3
|
||||
__subsf3: @ 82E8D18
|
||||
__subsf3: ; 82E8D18
|
||||
push {r4,lr}
|
||||
sub sp, 0x38
|
||||
str r0, [sp, 0x30]
|
||||
@ -4048,7 +4048,7 @@ __subsf3: @ 82E8D18
|
||||
thumb_func_end __subsf3
|
||||
|
||||
thumb_func_start __mulsf3
|
||||
__mulsf3: @ 82E8D4C
|
||||
__mulsf3: ; 82E8D4C
|
||||
push {r4-r7,lr}
|
||||
mov r7, r9
|
||||
mov r6, r8
|
||||
@ -4251,7 +4251,7 @@ _082E8EAC: .4byte 0x3fffffff
|
||||
thumb_func_end __mulsf3
|
||||
|
||||
thumb_func_start __divsf3
|
||||
__divsf3: @ 82E8EB0
|
||||
__divsf3: ; 82E8EB0
|
||||
push {r4-r6,lr}
|
||||
sub sp, 0x28
|
||||
str r0, [sp, 0x20]
|
||||
@ -4387,7 +4387,7 @@ _082E8F90:
|
||||
thumb_func_end __divsf3
|
||||
|
||||
thumb_func_start __fpcmp_parts_f
|
||||
__fpcmp_parts_f: @ 82E8F9C
|
||||
__fpcmp_parts_f: ; 82E8F9C
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
movs r0, 0
|
||||
@ -4530,7 +4530,7 @@ _082E907E:
|
||||
thumb_func_end __fpcmp_parts_f
|
||||
|
||||
thumb_func_start __cmpsf2
|
||||
__cmpsf2: @ 82E9080
|
||||
__cmpsf2: ; 82E9080
|
||||
push {r4,lr}
|
||||
sub sp, 0x28
|
||||
str r0, [sp, 0x20]
|
||||
@ -4550,7 +4550,7 @@ __cmpsf2: @ 82E9080
|
||||
thumb_func_end __cmpsf2
|
||||
|
||||
thumb_func_start __eqsf2
|
||||
__eqsf2: @ 82E90A8
|
||||
__eqsf2: ; 82E90A8
|
||||
push {r4,lr}
|
||||
sub sp, 0x28
|
||||
str r0, [sp, 0x20]
|
||||
@ -4591,7 +4591,7 @@ _082E90EA:
|
||||
thumb_func_end __eqsf2
|
||||
|
||||
thumb_func_start __nesf2
|
||||
__nesf2: @ 82E90F0
|
||||
__nesf2: ; 82E90F0
|
||||
push {r4,lr}
|
||||
sub sp, 0x28
|
||||
str r0, [sp, 0x20]
|
||||
@ -4632,7 +4632,7 @@ _082E9132:
|
||||
thumb_func_end __nesf2
|
||||
|
||||
thumb_func_start __gtsf2
|
||||
__gtsf2: @ 82E9138
|
||||
__gtsf2: ; 82E9138
|
||||
push {r4,lr}
|
||||
sub sp, 0x28
|
||||
str r0, [sp, 0x20]
|
||||
@ -4674,7 +4674,7 @@ _082E917C:
|
||||
thumb_func_end __gtsf2
|
||||
|
||||
thumb_func_start __gesf2
|
||||
__gesf2: @ 82E9180
|
||||
__gesf2: ; 82E9180
|
||||
push {r4,lr}
|
||||
sub sp, 0x28
|
||||
str r0, [sp, 0x20]
|
||||
@ -4716,7 +4716,7 @@ _082E91C4:
|
||||
thumb_func_end __gesf2
|
||||
|
||||
thumb_func_start __ltsf2
|
||||
__ltsf2: @ 82E91C8
|
||||
__ltsf2: ; 82E91C8
|
||||
push {r4,lr}
|
||||
sub sp, 0x28
|
||||
str r0, [sp, 0x20]
|
||||
@ -4757,7 +4757,7 @@ _082E920A:
|
||||
thumb_func_end __ltsf2
|
||||
|
||||
thumb_func_start __lesf2
|
||||
__lesf2: @ 82E9210
|
||||
__lesf2: ; 82E9210
|
||||
push {r4,lr}
|
||||
sub sp, 0x28
|
||||
str r0, [sp, 0x20]
|
||||
@ -4798,7 +4798,7 @@ _082E9252:
|
||||
thumb_func_end __lesf2
|
||||
|
||||
thumb_func_start __floatsisf
|
||||
__floatsisf: @ 82E9258
|
||||
__floatsisf: ; 82E9258
|
||||
push {lr}
|
||||
sub sp, 0x10
|
||||
adds r1, r0, 0
|
||||
@ -4855,7 +4855,7 @@ _082E92B4: .4byte 0x3fffffff
|
||||
thumb_func_end __floatsisf
|
||||
|
||||
thumb_func_start __fixsfsi
|
||||
__fixsfsi: @ 82E92B8
|
||||
__fixsfsi: ; 82E92B8
|
||||
push {lr}
|
||||
sub sp, 0x14
|
||||
str r0, [sp, 0x10]
|
||||
@ -4919,7 +4919,7 @@ _082E931C:
|
||||
thumb_func_end __fixsfsi
|
||||
|
||||
thumb_func_start __negsf2
|
||||
__negsf2: @ 82E9320
|
||||
__negsf2: ; 82E9320
|
||||
push {lr}
|
||||
sub sp, 0x14
|
||||
str r0, [sp, 0x10]
|
||||
@ -4940,7 +4940,7 @@ _082E9338:
|
||||
thumb_func_end __negsf2
|
||||
|
||||
thumb_func_start __make_fp
|
||||
__make_fp: @ 82E9344
|
||||
__make_fp: ; 82E9344
|
||||
push {lr}
|
||||
sub sp, 0x10
|
||||
str r0, [sp]
|
||||
@ -4954,7 +4954,7 @@ __make_fp: @ 82E9344
|
||||
thumb_func_end __make_fp
|
||||
|
||||
thumb_func_start __extendsfdf2
|
||||
__extendsfdf2: @ 82E935C
|
||||
__extendsfdf2: ; 82E935C
|
||||
push {r4-r6,lr}
|
||||
sub sp, 0x18
|
||||
str r0, [sp, 0x14]
|
||||
@ -4978,7 +4978,7 @@ __extendsfdf2: @ 82E935C
|
||||
thumb_func_end __extendsfdf2
|
||||
|
||||
thumb_func_start __lshrdi3
|
||||
__lshrdi3: @ 82E9388
|
||||
__lshrdi3: ; 82E9388
|
||||
push {r4-r6,lr}
|
||||
adds r6, r1, 0
|
||||
adds r5, r0, 0
|
||||
@ -5010,7 +5010,7 @@ _082E93B8:
|
||||
thumb_func_end __lshrdi3
|
||||
|
||||
thumb_func_start __negdi2
|
||||
__negdi2: @ 82E93BC
|
||||
__negdi2: ; 82E93BC
|
||||
push {r4,lr}
|
||||
negs r2, r0
|
||||
adds r3, r2, 0
|
||||
@ -5026,8 +5026,8 @@ _082E93CA:
|
||||
thumb_func_end __negdi2
|
||||
|
||||
thumb_func_start memcpy
|
||||
@ void *memcpy(void *dest, void *src, int size)
|
||||
memcpy: @ 82E93D4
|
||||
; void *memcpy(void *dest, void *src, int size)
|
||||
memcpy: ; 82E93D4
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
adds r4, r5, 0
|
||||
@ -5084,8 +5084,8 @@ _082E942E:
|
||||
thumb_func_end memcpy
|
||||
|
||||
thumb_func_start memset
|
||||
@ void *memset(void *dest, char c, int size)
|
||||
memset: @ 82E9434
|
||||
; void *memset(void *dest, char c, int size)
|
||||
memset: ; 82E9434
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
adds r4, r1, 0
|
||||
@ -5135,8 +5135,8 @@ _082E947A:
|
||||
thumb_func_end memset
|
||||
|
||||
thumb_func_start strcmp
|
||||
@ int strcmp(char *s1, char *s2)
|
||||
strcmp: @ 82E9488
|
||||
; int strcmp(char *s1, char *s2)
|
||||
strcmp: ; 82E9488
|
||||
push {r4,r5,lr}
|
||||
adds r2, r0, 0
|
||||
adds r3, r1, 0
|
||||
@ -5190,7 +5190,7 @@ _082E94E0:
|
||||
thumb_func_end strcmp
|
||||
|
||||
thumb_func_start strcat
|
||||
strcat: @ 82E94E4
|
||||
strcat: ; 82E94E4
|
||||
push {r4-r6,lr}
|
||||
adds r6, r0, 0
|
||||
adds r3, r6, 0
|
||||
|
226
asm/libmks4agb.s
226
asm/libmks4agb.s
@ -1,5 +1,5 @@
|
||||
thumb_func_start umul3232H32
|
||||
umul3232H32: @ 82DF04C
|
||||
umul3232H32: ; 82DF04C
|
||||
adr r2, _082DF050
|
||||
bx r2
|
||||
.arm
|
||||
@ -11,7 +11,7 @@ _082DF050:
|
||||
|
||||
.thumb
|
||||
thumb_func_start SoundMain
|
||||
SoundMain: @ 82DF05C
|
||||
SoundMain: ; 82DF05C
|
||||
ldr r0, _082DF0C8
|
||||
ldr r0, [r0]
|
||||
ldr r2, _082DF0CC
|
||||
@ -78,7 +78,7 @@ _082DF0DC: .4byte 0x00000630
|
||||
thumb_func_end SoundMain
|
||||
|
||||
thumb_func_start SoundMainRAM
|
||||
SoundMainRAM: @ 82DF0E0
|
||||
SoundMainRAM: ; 82DF0E0
|
||||
ldrb r3, [r0, 0x5]
|
||||
cmp r3, 0
|
||||
beq _082DF140
|
||||
@ -457,7 +457,7 @@ _082DF498: .4byte 0x68736d53
|
||||
|
||||
.arm
|
||||
arm_func_start sub_82DF49C
|
||||
sub_82DF49C: @ 82DF49C
|
||||
sub_82DF49C: ; 82DF49C
|
||||
ldr r6, [r4, 0x24]
|
||||
ldrb r0, [r4]
|
||||
tst r0, 0x20
|
||||
@ -657,7 +657,7 @@ _082DF72C:
|
||||
arm_func_end sub_82DF49C
|
||||
|
||||
arm_func_start sub_82DF758
|
||||
sub_82DF758: @ 82DF758
|
||||
sub_82DF758: ; 82DF758
|
||||
stmdb sp!, {r0,r2,r5-r7,lr}
|
||||
mov r0, r3, lsr 6
|
||||
ldr r1, [r4, 0x3C]
|
||||
@ -701,7 +701,7 @@ _082DF7E0: .4byte 0x08675a70
|
||||
|
||||
.thumb
|
||||
thumb_func_start SoundMainBTM
|
||||
SoundMainBTM: @ 82DF7E4
|
||||
SoundMainBTM: ; 82DF7E4
|
||||
mov r12, r4
|
||||
movs r1, 0
|
||||
movs r2, 0
|
||||
@ -716,7 +716,7 @@ SoundMainBTM: @ 82DF7E4
|
||||
thumb_func_end SoundMainBTM
|
||||
|
||||
thumb_func_start ClearChain
|
||||
ClearChain: @ 82DF7FC
|
||||
ClearChain: ; 82DF7FC
|
||||
ldr r3, [r0, 0x2C]
|
||||
cmp r3, 0
|
||||
beq _082DF81A
|
||||
@ -740,7 +740,7 @@ _082DF81A:
|
||||
thumb_func_end ClearChain
|
||||
|
||||
thumb_func_start ply_fine
|
||||
ply_fine: @ 82DF81C
|
||||
ply_fine: ; 82DF81C
|
||||
push {r4,r5,lr}
|
||||
adds r5, r1, 0
|
||||
ldr r4, [r5, 0x20]
|
||||
@ -769,7 +769,7 @@ _082DF840:
|
||||
thumb_func_end ply_fine
|
||||
|
||||
thumb_func_start MPlyJmpTblCopy
|
||||
MPlyJmpTblCopy: @ 82DF84C
|
||||
MPlyJmpTblCopy: ; 82DF84C
|
||||
mov r12, lr
|
||||
movs r1, 0x24
|
||||
ldr r2, _082DF87C
|
||||
@ -784,12 +784,12 @@ _082DF852:
|
||||
thumb_func_end MPlyJmpTblCopy
|
||||
|
||||
thumb_func_start ldrb_r3_r2
|
||||
ldrb_r3_r2: @ 82DF864
|
||||
ldrb_r3_r2: ; 82DF864
|
||||
ldrb r3, [r2]
|
||||
thumb_func_end ldrb_r3_r2
|
||||
|
||||
non_word_aligned_thumb_func_start chk_adr_r2
|
||||
chk_adr_r2: @ 82DF866
|
||||
chk_adr_r2: ; 82DF866
|
||||
push {r0}
|
||||
lsrs r0, r2, 25
|
||||
bne _082DF878
|
||||
@ -808,7 +808,7 @@ _082DF87C: .4byte 0x086759e0
|
||||
thumb_func_end chk_adr_r2
|
||||
|
||||
thumb_func_start ld_r3_tp_adr_i
|
||||
ld_r3_tp_adr_i: @ 82DF880
|
||||
ld_r3_tp_adr_i: ; 82DF880
|
||||
ldr r2, [r1, 0x40]
|
||||
_082DF882:
|
||||
adds r3, r2, 0x1
|
||||
@ -818,7 +818,7 @@ _082DF882:
|
||||
thumb_func_end ld_r3_tp_adr_i
|
||||
|
||||
thumb_func_start ply_goto
|
||||
ply_goto: @ 82DF88C
|
||||
ply_goto: ; 82DF88C
|
||||
push {lr}
|
||||
_082DF88E:
|
||||
ldr r2, [r1, 0x40]
|
||||
@ -838,7 +838,7 @@ _082DF88E:
|
||||
thumb_func_end ply_goto
|
||||
|
||||
thumb_func_start ply_patt
|
||||
ply_patt: @ 82DF8AC
|
||||
ply_patt: ; 82DF8AC
|
||||
ldrb r2, [r1, 0x2]
|
||||
cmp r2, 0x3
|
||||
bcs _082DF8C4
|
||||
@ -856,7 +856,7 @@ _082DF8C4:
|
||||
thumb_func_end ply_patt
|
||||
|
||||
thumb_func_start play_pend
|
||||
play_pend: @ 82DF8C8
|
||||
play_pend: ; 82DF8C8
|
||||
ldrb r2, [r1, 0x2]
|
||||
cmp r2, 0
|
||||
beq _082DF8DA
|
||||
@ -871,7 +871,7 @@ _082DF8DA:
|
||||
thumb_func_end play_pend
|
||||
|
||||
thumb_func_start ply_rept
|
||||
ply_rept: @ 82DF8DC
|
||||
ply_rept: ; 82DF8DC
|
||||
push {lr}
|
||||
ldr r2, [r1, 0x40]
|
||||
ldrb r3, [r2]
|
||||
@ -899,7 +899,7 @@ _082DF8FE:
|
||||
thumb_func_end ply_rept
|
||||
|
||||
thumb_func_start ply_prio
|
||||
ply_prio: @ 82DF90C
|
||||
ply_prio: ; 82DF90C
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
strb r3, [r1, 0x1D]
|
||||
@ -907,7 +907,7 @@ ply_prio: @ 82DF90C
|
||||
thumb_func_end ply_prio
|
||||
|
||||
thumb_func_start ply_tempo
|
||||
ply_tempo: @ 82DF918
|
||||
ply_tempo: ; 82DF918
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
lsls r3, 1
|
||||
@ -920,7 +920,7 @@ ply_tempo: @ 82DF918
|
||||
thumb_func_end ply_tempo
|
||||
|
||||
thumb_func_start ply_keysh
|
||||
ply_keysh: @ 82DF92C
|
||||
ply_keysh: ; 82DF92C
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
strb r3, [r1, 0xA]
|
||||
@ -932,7 +932,7 @@ ply_keysh: @ 82DF92C
|
||||
thumb_func_end ply_keysh
|
||||
|
||||
thumb_func_start ply_voice
|
||||
ply_voice: @ 82DF940
|
||||
ply_voice: ; 82DF940
|
||||
mov r12, lr
|
||||
ldr r2, [r1, 0x40]
|
||||
ldrb r3, [r2]
|
||||
@ -956,7 +956,7 @@ ply_voice: @ 82DF940
|
||||
thumb_func_end ply_voice
|
||||
|
||||
thumb_func_start ply_vol
|
||||
ply_vol: @ 82DF970
|
||||
ply_vol: ; 82DF970
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
strb r3, [r1, 0x12]
|
||||
@ -968,7 +968,7 @@ ply_vol: @ 82DF970
|
||||
thumb_func_end ply_vol
|
||||
|
||||
thumb_func_start ply_pan
|
||||
ply_pan: @ 82DF984
|
||||
ply_pan: ; 82DF984
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
subs r3, 0x40
|
||||
@ -981,7 +981,7 @@ ply_pan: @ 82DF984
|
||||
thumb_func_end ply_pan
|
||||
|
||||
thumb_func_start ply_bend
|
||||
ply_bend: @ 82DF998
|
||||
ply_bend: ; 82DF998
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
subs r3, 0x40
|
||||
@ -994,7 +994,7 @@ ply_bend: @ 82DF998
|
||||
thumb_func_end ply_bend
|
||||
|
||||
thumb_func_start ply_bendr
|
||||
ply_bendr: @ 82DF9AC
|
||||
ply_bendr: ; 82DF9AC
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
strb r3, [r1, 0xF]
|
||||
@ -1006,7 +1006,7 @@ ply_bendr: @ 82DF9AC
|
||||
thumb_func_end ply_bendr
|
||||
|
||||
thumb_func_start ply_lfodl
|
||||
ply_lfodl: @ 82DF9C0
|
||||
ply_lfodl: ; 82DF9C0
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
strb r3, [r1, 0x1B]
|
||||
@ -1014,7 +1014,7 @@ ply_lfodl: @ 82DF9C0
|
||||
thumb_func_end ply_lfodl
|
||||
|
||||
thumb_func_start ply_modt
|
||||
ply_modt: @ 82DF9CC
|
||||
ply_modt: ; 82DF9CC
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
ldrb r0, [r1, 0x18]
|
||||
@ -1030,7 +1030,7 @@ _082DF9E2:
|
||||
thumb_func_end ply_modt
|
||||
|
||||
thumb_func_start ply_tune
|
||||
ply_tune: @ 82DF9E4
|
||||
ply_tune: ; 82DF9E4
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i
|
||||
subs r3, 0x40
|
||||
@ -1043,7 +1043,7 @@ ply_tune: @ 82DF9E4
|
||||
thumb_func_end ply_tune
|
||||
|
||||
thumb_func_start ply_port
|
||||
ply_port: @ 82DF9F8
|
||||
ply_port: ; 82DF9F8
|
||||
mov r12, lr
|
||||
ldr r2, [r1, 0x40]
|
||||
ldrb r3, [r2]
|
||||
@ -1058,7 +1058,7 @@ _082DFA0C: .4byte 0x04000060
|
||||
thumb_func_end ply_port
|
||||
|
||||
thumb_func_start SoundVSync_rev01
|
||||
SoundVSync_rev01: @ 82DFA10
|
||||
SoundVSync_rev01: ; 82DFA10
|
||||
ldr r0, _082DFCBC
|
||||
ldr r0, [r0]
|
||||
ldr r2, _082DFCC0
|
||||
@ -1101,7 +1101,7 @@ _082DFA58: .4byte 0x84400004
|
||||
thumb_func_end SoundVSync_rev01
|
||||
|
||||
thumb_func_start MPlayMain_rev01
|
||||
MPlayMain_rev01: @ 82DFA5C
|
||||
MPlayMain_rev01: ; 82DFA5C
|
||||
ldr r2, _082DFCC0
|
||||
ldr r3, [r0, 0x34]
|
||||
cmp r2, r3
|
||||
@ -1438,7 +1438,7 @@ _082DFCC0: .4byte 0x68736d53
|
||||
thumb_func_end MPlayMain_rev01
|
||||
|
||||
thumb_func_start TrackStop_rev01
|
||||
TrackStop_rev01: @ 82DFCC4
|
||||
TrackStop_rev01: ; 82DFCC4
|
||||
push {r4-r6,lr}
|
||||
adds r5, r1, 0
|
||||
ldrb r1, [r5]
|
||||
@ -1479,7 +1479,7 @@ _082DFD04: .4byte 0x03007ff0
|
||||
thumb_func_end TrackStop_rev01
|
||||
|
||||
thumb_func_start ChnVolSetAsm
|
||||
ChnVolSetAsm: @ 82DFD08
|
||||
ChnVolSetAsm: ; 82DFD08
|
||||
ldrb r1, [r4, 0x12]
|
||||
movs r0, 0x14
|
||||
ldrsb r2, [r4, r0]
|
||||
@ -1509,7 +1509,7 @@ _082DFD34:
|
||||
thumb_func_end ChnVolSetAsm
|
||||
|
||||
thumb_func_start ply_note_rev01
|
||||
ply_note_rev01: @ 82DFD38
|
||||
ply_note_rev01: ; 82DFD38
|
||||
push {r4-r7,lr}
|
||||
mov r4, r8
|
||||
mov r5, r9
|
||||
@ -1791,7 +1791,7 @@ _082DFF38: .4byte 0x08675c64
|
||||
thumb_func_end ply_note_rev01
|
||||
|
||||
thumb_func_start ply_endtie_rev01
|
||||
ply_endtie_rev01: @ 82DFF3C
|
||||
ply_endtie_rev01: ; 82DFF3C
|
||||
push {r4,r5}
|
||||
ldr r2, [r1, 0x40]
|
||||
ldrb r3, [r2]
|
||||
@ -1832,7 +1832,7 @@ _082DFF78:
|
||||
thumb_func_end ply_endtie_rev01
|
||||
|
||||
thumb_func_start clear_modM
|
||||
clear_modM: @ 82DFF7C
|
||||
clear_modM: ; 82DFF7C
|
||||
movs r2, 0
|
||||
strb r2, [r1, 0x16]
|
||||
strb r2, [r1, 0x1A]
|
||||
@ -1851,7 +1851,7 @@ _082DFF8E:
|
||||
thumb_func_end clear_modM
|
||||
|
||||
thumb_func_start ld_r3_tp_adr_i_rev
|
||||
ld_r3_tp_adr_i_rev: @ 82DFF98
|
||||
ld_r3_tp_adr_i_rev: ; 82DFF98
|
||||
ldr r2, [r1, 0x40]
|
||||
adds r3, r2, 0x1
|
||||
str r3, [r1, 0x40]
|
||||
@ -1860,7 +1860,7 @@ ld_r3_tp_adr_i_rev: @ 82DFF98
|
||||
thumb_func_end ld_r3_tp_adr_i_rev
|
||||
|
||||
thumb_func_start ply_lfos_rev01
|
||||
ply_lfos_rev01: @ 82DFFA4
|
||||
ply_lfos_rev01: ; 82DFFA4
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i_rev
|
||||
strb r3, [r1, 0x19]
|
||||
@ -1872,7 +1872,7 @@ _082DFFB4:
|
||||
thumb_func_end ply_lfos_rev01
|
||||
|
||||
thumb_func_start ply_mod_rev01
|
||||
ply_mod_rev01: @ 82DFFB8
|
||||
ply_mod_rev01: ; 82DFFB8
|
||||
mov r12, lr
|
||||
bl ld_r3_tp_adr_i_rev
|
||||
strb r3, [r1, 0x17]
|
||||
@ -1884,7 +1884,7 @@ _082DFFC8:
|
||||
thumb_func_end ply_mod_rev01
|
||||
|
||||
thumb_func_start MidiKey2fr
|
||||
MidiKey2fr: @ 82DFFCC
|
||||
MidiKey2fr: ; 82DFFCC
|
||||
push {r4-r7,lr}
|
||||
mov r12, r0
|
||||
lsls r1, 24
|
||||
@ -1936,12 +1936,12 @@ _082E002C: .4byte 0x08675b34
|
||||
thumb_func_end MidiKey2fr
|
||||
|
||||
thumb_func_start DummyFunc
|
||||
DummyFunc: @ 82E0030
|
||||
DummyFunc: ; 82E0030
|
||||
bx lr
|
||||
thumb_func_end DummyFunc
|
||||
|
||||
thumb_func_start MPlayContinue
|
||||
MPlayContinue: @ 82E0034
|
||||
MPlayContinue: ; 82E0034
|
||||
adds r2, r0, 0
|
||||
ldr r3, [r2, 0x34]
|
||||
ldr r0, _082E0048
|
||||
@ -1959,8 +1959,8 @@ _082E004C: .4byte 0x7fffffff
|
||||
thumb_func_end MPlayContinue
|
||||
|
||||
thumb_func_start MPlayFadeOut
|
||||
@ void MPlayFadeOut(mplay_table_entry *a1, s16 a2)
|
||||
MPlayFadeOut: @ 82E0050
|
||||
; void MPlayFadeOut(mplay_table_entry *a1, s16 a2)
|
||||
MPlayFadeOut: ; 82E0050
|
||||
adds r2, r0, 0
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
@ -1980,7 +1980,7 @@ _082E006C: .4byte 0x68736d53
|
||||
thumb_func_end MPlayFadeOut
|
||||
|
||||
thumb_func_start m4aSoundInit
|
||||
m4aSoundInit: @ 82E0070
|
||||
m4aSoundInit: ; 82E0070
|
||||
push {r4-r6,lr}
|
||||
ldr r0, _082E00F0
|
||||
movs r1, 0x2
|
||||
@ -2058,7 +2058,7 @@ _082E0120: .4byte 0x03007670
|
||||
thumb_func_end m4aSoundInit
|
||||
|
||||
thumb_func_start m4aSoundMain
|
||||
m4aSoundMain: @ 82E0124
|
||||
m4aSoundMain: ; 82E0124
|
||||
push {lr}
|
||||
bl SoundMain
|
||||
pop {r0}
|
||||
@ -2066,7 +2066,7 @@ m4aSoundMain: @ 82E0124
|
||||
thumb_func_end m4aSoundMain
|
||||
|
||||
thumb_func_start m4aSongNumStart
|
||||
m4aSongNumStart: @ 82E0130
|
||||
m4aSongNumStart: ; 82E0130
|
||||
push {lr}
|
||||
lsls r0, 16
|
||||
ldr r2, _082E0154
|
||||
@ -2090,7 +2090,7 @@ _082E0158: .4byte 0x086b49f0
|
||||
thumb_func_end m4aSongNumStart
|
||||
|
||||
thumb_func_start m4aSongNumStartOrChange
|
||||
m4aSongNumStartOrChange: @ 82E015C
|
||||
m4aSongNumStartOrChange: ; 82E015C
|
||||
push {lr}
|
||||
lsls r0, 16
|
||||
ldr r2, _082E0188
|
||||
@ -2131,7 +2131,7 @@ _082E01A4:
|
||||
thumb_func_end m4aSongNumStartOrChange
|
||||
|
||||
thumb_func_start m4aSongNumStartOrContinue
|
||||
m4aSongNumStartOrContinue: @ 82E01A8
|
||||
m4aSongNumStartOrContinue: ; 82E01A8
|
||||
push {lr}
|
||||
lsls r0, 16
|
||||
ldr r2, _082E01D4
|
||||
@ -2175,7 +2175,7 @@ _082E01F8:
|
||||
thumb_func_end m4aSongNumStartOrContinue
|
||||
|
||||
thumb_func_start m4aSongNumStop
|
||||
m4aSongNumStop: @ 82E01FC
|
||||
m4aSongNumStop: ; 82E01FC
|
||||
push {lr}
|
||||
lsls r0, 16
|
||||
ldr r2, _082E0228
|
||||
@ -2203,7 +2203,7 @@ _082E022C: .4byte 0x086b49f0
|
||||
thumb_func_end m4aSongNumStop
|
||||
|
||||
thumb_func_start m4aSongNumContinue
|
||||
m4aSongNumContinue: @ 82E0230
|
||||
m4aSongNumContinue: ; 82E0230
|
||||
push {lr}
|
||||
lsls r0, 16
|
||||
ldr r2, _082E025C
|
||||
@ -2231,7 +2231,7 @@ _082E0260: .4byte 0x086b49f0
|
||||
thumb_func_end m4aSongNumContinue
|
||||
|
||||
thumb_func_start m4aMPlayAllStop
|
||||
m4aMPlayAllStop: @ 82E0264
|
||||
m4aMPlayAllStop: ; 82E0264
|
||||
push {r4,r5,lr}
|
||||
ldr r0, _082E029C
|
||||
lsls r0, 16
|
||||
@ -2267,7 +2267,7 @@ _082E02A4: .4byte 0x030073a0
|
||||
thumb_func_end m4aMPlayAllStop
|
||||
|
||||
thumb_func_start m4aMPlayContinue
|
||||
m4aMPlayContinue: @ 82E02A8
|
||||
m4aMPlayContinue: ; 82E02A8
|
||||
push {lr}
|
||||
bl MPlayContinue
|
||||
pop {r0}
|
||||
@ -2275,7 +2275,7 @@ m4aMPlayContinue: @ 82E02A8
|
||||
thumb_func_end m4aMPlayContinue
|
||||
|
||||
thumb_func_start m4aMPlayAllContinue
|
||||
m4aMPlayAllContinue: @ 82E02B2
|
||||
m4aMPlayAllContinue: ; 82E02B2
|
||||
push {r4,r5,lr}
|
||||
ldr r0, _082E02EC
|
||||
lsls r0, 16
|
||||
@ -2311,8 +2311,8 @@ _082E02F4: .4byte 0x030073a0
|
||||
thumb_func_end m4aMPlayAllContinue
|
||||
|
||||
thumb_func_start m4aMPlayFadeOut
|
||||
@ void m4aMPlayFadeOut(mplay_table_entry *a1, u16 a2)
|
||||
m4aMPlayFadeOut: @ 82E02F8
|
||||
; void m4aMPlayFadeOut(mplay_table_entry *a1, u16 a2)
|
||||
m4aMPlayFadeOut: ; 82E02F8
|
||||
push {lr}
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
@ -2322,7 +2322,7 @@ m4aMPlayFadeOut: @ 82E02F8
|
||||
thumb_func_end m4aMPlayFadeOut
|
||||
|
||||
thumb_func_start sub_82E0308
|
||||
sub_82E0308: @ 82E0308
|
||||
sub_82E0308: ; 82E0308
|
||||
adds r2, r0, 0
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
@ -2342,7 +2342,7 @@ _082E0324: .4byte 0x00000101
|
||||
thumb_func_end sub_82E0308
|
||||
|
||||
thumb_func_start sub_82E0328
|
||||
sub_82E0328: @ 82E0328
|
||||
sub_82E0328: ; 82E0328
|
||||
adds r2, r0, 0
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
@ -2366,7 +2366,7 @@ _082E034C: .4byte 0x7fffffff
|
||||
thumb_func_end sub_82E0328
|
||||
|
||||
thumb_func_start m4aMPlayImmInit
|
||||
m4aMPlayImmInit: @ 82E0350
|
||||
m4aMPlayImmInit: ; 82E0350
|
||||
push {r4-r7,lr}
|
||||
ldrb r5, [r0, 0x8]
|
||||
ldr r4, [r0, 0x2C]
|
||||
@ -2408,8 +2408,8 @@ _082E0392:
|
||||
thumb_func_end m4aMPlayImmInit
|
||||
|
||||
thumb_func_start MPlayExtender
|
||||
@ int MPlayExtender(void *dest)
|
||||
MPlayExtender: @ 82E0398
|
||||
; int MPlayExtender(void *dest)
|
||||
MPlayExtender: ; 82E0398
|
||||
push {r4-r6,lr}
|
||||
sub sp, 0x4
|
||||
adds r5, r0, 0
|
||||
@ -2534,13 +2534,13 @@ _082E04AC: .4byte 0x05000040
|
||||
thumb_func_end MPlayExtender
|
||||
|
||||
thumb_func_start MusicPlayerJumpTableCopy
|
||||
MusicPlayerJumpTableCopy: @ 82E04B0
|
||||
MusicPlayerJumpTableCopy: ; 82E04B0
|
||||
swi 0x2A
|
||||
bx lr
|
||||
thumb_func_end MusicPlayerJumpTableCopy
|
||||
|
||||
thumb_func_start ClearChain_rev
|
||||
ClearChain_rev: @ 82E04B4
|
||||
ClearChain_rev: ; 82E04B4
|
||||
push {lr}
|
||||
ldr r1, _082E04C4
|
||||
ldr r1, [r1]
|
||||
@ -2552,7 +2552,7 @@ _082E04C4: .4byte 0x030074e8
|
||||
thumb_func_end ClearChain_rev
|
||||
|
||||
thumb_func_start Clear64byte_rev
|
||||
Clear64byte_rev: @ 82E04C8
|
||||
Clear64byte_rev: ; 82E04C8
|
||||
push {lr}
|
||||
ldr r1, _082E04D8
|
||||
ldr r1, [r1]
|
||||
@ -2564,8 +2564,8 @@ _082E04D8: .4byte 0x030074ec
|
||||
thumb_func_end Clear64byte_rev
|
||||
|
||||
thumb_func_start SoundInit_rev01
|
||||
@ int SoundInit_rev01(void *dest)
|
||||
SoundInit_rev01: @ 82E04DC
|
||||
; int SoundInit_rev01(void *dest)
|
||||
SoundInit_rev01: ; 82E04DC
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x4
|
||||
adds r5, r0, 0
|
||||
@ -2677,7 +2677,7 @@ _082E05D0: .4byte 0x68736d53
|
||||
thumb_func_end SoundInit_rev01
|
||||
|
||||
thumb_func_start SampFreqSet_rev01
|
||||
SampFreqSet_rev01: @ 82E05D4
|
||||
SampFreqSet_rev01: ; 82E05D4
|
||||
push {r4-r6,lr}
|
||||
adds r2, r0, 0
|
||||
ldr r0, _082E0654
|
||||
@ -2751,7 +2751,7 @@ _082E0674: .4byte 0x04000006
|
||||
thumb_func_end SampFreqSet_rev01
|
||||
|
||||
thumb_func_start SoundMode_rev01
|
||||
SoundMode_rev01: @ 82E0678
|
||||
SoundMode_rev01: ; 82E0678
|
||||
push {r4,r5,lr}
|
||||
adds r3, r0, 0
|
||||
ldr r0, _082E0704
|
||||
@ -2834,7 +2834,7 @@ _082E070C: .4byte 0x04000089
|
||||
thumb_func_end SoundMode_rev01
|
||||
|
||||
thumb_func_start SoundClear_rev01
|
||||
SoundClear_rev01: @ 82E0710
|
||||
SoundClear_rev01: ; 82E0710
|
||||
push {r4-r7,lr}
|
||||
ldr r0, _082E075C
|
||||
ldr r6, [r0]
|
||||
@ -2882,7 +2882,7 @@ _082E0760: .4byte 0x68736d53
|
||||
thumb_func_end SoundClear_rev01
|
||||
|
||||
thumb_func_start SoundVSyncOff_rev01
|
||||
SoundVSyncOff_rev01: @ 82E0764
|
||||
SoundVSyncOff_rev01: ; 82E0764
|
||||
push {lr}
|
||||
sub sp, 0x4
|
||||
ldr r0, _082E07C4
|
||||
@ -2943,7 +2943,7 @@ _082E07DC: .4byte 0x05000318
|
||||
thumb_func_end SoundVSyncOff_rev01
|
||||
|
||||
thumb_func_start SoundVSyncOn_rev01
|
||||
SoundVSyncOn_rev01: @ 82E07E0
|
||||
SoundVSyncOn_rev01: ; 82E07E0
|
||||
push {r4,lr}
|
||||
ldr r0, _082E0810
|
||||
ldr r2, [r0]
|
||||
@ -2975,7 +2975,7 @@ _082E0818: .4byte 0x040000c6
|
||||
thumb_func_end SoundVSyncOn_rev01
|
||||
|
||||
thumb_func_start MPlayOpen_rev01
|
||||
MPlayOpen_rev01: @ 82E081C
|
||||
MPlayOpen_rev01: ; 82E081C
|
||||
push {r4-r7,lr}
|
||||
adds r7, r0, 0
|
||||
adds r6, r1, 0
|
||||
@ -3040,7 +3040,7 @@ _082E0890: .4byte MPlayMain_rev01 + 1
|
||||
thumb_func_end MPlayOpen_rev01
|
||||
|
||||
thumb_func_start MPlayStart_rev01
|
||||
MPlayStart_rev01: @ 82E0894
|
||||
MPlayStart_rev01: ; 82E0894
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
@ -3164,7 +3164,7 @@ _082E0974: .4byte 0x68736d53
|
||||
thumb_func_end MPlayStart_rev01
|
||||
|
||||
thumb_func_start MPlayStop_rev01
|
||||
MPlayStop_rev01: @ 82E0978
|
||||
MPlayStop_rev01: ; 82E0978
|
||||
push {r4-r6,lr}
|
||||
adds r6, r0, 0
|
||||
ldr r1, [r6, 0x34]
|
||||
@ -3202,7 +3202,7 @@ _082E09B4: .4byte 0x68736d53
|
||||
thumb_func_end MPlayStop_rev01
|
||||
|
||||
thumb_func_start FadeOutBody_rev01
|
||||
FadeOutBody_rev01: @ 82E09B8
|
||||
FadeOutBody_rev01: ; 82E09B8
|
||||
push {r4-r7,lr}
|
||||
adds r6, r0, 0
|
||||
ldrh r1, [r6, 0x24]
|
||||
@ -3314,7 +3314,7 @@ _082E0A7A:
|
||||
thumb_func_end FadeOutBody_rev01
|
||||
|
||||
thumb_func_start TrkVolPitSet_rev01
|
||||
TrkVolPitSet_rev01: @ 82E0A80
|
||||
TrkVolPitSet_rev01: ; 82E0A80
|
||||
push {r4,lr}
|
||||
adds r2, r1, 0
|
||||
movs r0, 0x1
|
||||
@ -3415,7 +3415,7 @@ _082E0B28:
|
||||
thumb_func_end TrkVolPitSet_rev01
|
||||
|
||||
thumb_func_start MidiKey2CgbFr
|
||||
MidiKey2CgbFr: @ 82E0B34
|
||||
MidiKey2CgbFr: ; 82E0B34
|
||||
push {r4-r7,lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
@ -3507,7 +3507,7 @@ _082E0BD8: .4byte 0x08675c00
|
||||
thumb_func_end MidiKey2CgbFr
|
||||
|
||||
thumb_func_start CgbOscOff
|
||||
CgbOscOff: @ 82E0BDC
|
||||
CgbOscOff: ; 82E0BDC
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
adds r1, r0, 0
|
||||
@ -3557,7 +3557,7 @@ _082E0C28: .4byte 0x04000079
|
||||
thumb_func_end CgbOscOff
|
||||
|
||||
thumb_func_start CgbModVol
|
||||
CgbModVol: @ 82E0C2C
|
||||
CgbModVol: ; 82E0C2C
|
||||
push {r4,lr}
|
||||
adds r2, r0, 0
|
||||
ldr r0, _082E0C5C
|
||||
@ -3627,7 +3627,7 @@ _082E0C8C:
|
||||
thumb_func_end CgbModVol
|
||||
|
||||
thumb_func_start CgbSound
|
||||
CgbSound: @ 82E0CA8
|
||||
CgbSound: ; 82E0CA8
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -4211,7 +4211,7 @@ _082E10E2:
|
||||
thumb_func_end CgbSound
|
||||
|
||||
thumb_func_start MPlayTempoControl
|
||||
MPlayTempoControl: @ 82E10F4
|
||||
MPlayTempoControl: ; 82E10F4
|
||||
push {r4,lr}
|
||||
adds r2, r0, 0
|
||||
lsls r1, 16
|
||||
@ -4235,7 +4235,7 @@ _082E1118: .4byte 0x68736d53
|
||||
thumb_func_end MPlayTempoControl
|
||||
|
||||
thumb_func_start MPlayVolumeControl
|
||||
MPlayVolumeControl: @ 82E111C
|
||||
MPlayVolumeControl: ; 82E111C
|
||||
push {r4-r7,lr}
|
||||
mov r7, r9
|
||||
mov r6, r8
|
||||
@ -4295,7 +4295,7 @@ _082E1180: .4byte 0x68736d53
|
||||
thumb_func_end MPlayVolumeControl
|
||||
|
||||
thumb_func_start MPlayPitchControl
|
||||
MPlayPitchControl: @ 82E1184
|
||||
MPlayPitchControl: ; 82E1184
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -4361,7 +4361,7 @@ _082E11F4: .4byte 0x68736d53
|
||||
thumb_func_end MPlayPitchControl
|
||||
|
||||
thumb_func_start MPlayPanpotControl
|
||||
MPlayPanpotControl: @ 82E11F8
|
||||
MPlayPanpotControl: ; 82E11F8
|
||||
push {r4-r7,lr}
|
||||
mov r7, r9
|
||||
mov r6, r8
|
||||
@ -4421,7 +4421,7 @@ _082E125C: .4byte 0x68736d53
|
||||
thumb_func_end MPlayPanpotControl
|
||||
|
||||
thumb_func_start MP_clear_modM
|
||||
MP_clear_modM: @ 82E1260
|
||||
MP_clear_modM: ; 82E1260
|
||||
adds r1, r0, 0
|
||||
movs r2, 0
|
||||
movs r0, 0
|
||||
@ -4442,7 +4442,7 @@ _082E1276:
|
||||
thumb_func_end MP_clear_modM
|
||||
|
||||
thumb_func_start MPlayModDepthSet
|
||||
MPlayModDepthSet: @ 82E1280
|
||||
MPlayModDepthSet: ; 82E1280
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -4506,7 +4506,7 @@ _082E12F0: .4byte 0x68736d53
|
||||
thumb_func_end MPlayModDepthSet
|
||||
|
||||
thumb_func_start MPlayLFOSpeedSet
|
||||
MPlayLFOSpeedSet: @ 82E12F4
|
||||
MPlayLFOSpeedSet: ; 82E12F4
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -4570,7 +4570,7 @@ _082E1364: .4byte 0x68736d53
|
||||
thumb_func_end MPlayLFOSpeedSet
|
||||
|
||||
thumb_func_start ply_memacc
|
||||
ply_memacc: @ 82E1368
|
||||
ply_memacc: ; 82E1368
|
||||
push {r4-r6,lr}
|
||||
adds r4, r0, 0
|
||||
adds r6, r1, 0
|
||||
@ -4749,7 +4749,7 @@ _082E14BA:
|
||||
thumb_func_end ply_memacc
|
||||
|
||||
thumb_func_start ply_xcmd
|
||||
ply_xcmd: @ 82E14C0
|
||||
ply_xcmd: ; 82E14C0
|
||||
push {lr}
|
||||
ldr r2, [r1, 0x40]
|
||||
ldrb r3, [r2]
|
||||
@ -4767,7 +4767,7 @@ _082E14DC: .4byte 0x08675ccc
|
||||
thumb_func_end ply_xcmd
|
||||
|
||||
thumb_func_start ply_xxx
|
||||
ply_xxx: @ 82E14E0
|
||||
ply_xxx: ; 82E14E0
|
||||
push {lr}
|
||||
ldr r2, _082E14F0
|
||||
ldr r2, [r2]
|
||||
@ -4779,7 +4779,7 @@ _082E14F0: .4byte 0x03007460
|
||||
thumb_func_end ply_xxx
|
||||
|
||||
thumb_func_start ply_xwave
|
||||
ply_xwave: @ 82E14F4
|
||||
ply_xwave: ; 82E14F4
|
||||
push {r4,lr}
|
||||
ldr r2, [r1, 0x40]
|
||||
ldr r0, _082E152C
|
||||
@ -4815,7 +4815,7 @@ _082E1538: .4byte 0x00ffffff
|
||||
thumb_func_end ply_xwave
|
||||
|
||||
thumb_func_start ply_xtype
|
||||
ply_xtype: @ 82E153C
|
||||
ply_xtype: ; 82E153C
|
||||
ldr r0, [r1, 0x40]
|
||||
ldrb r2, [r0]
|
||||
adds r0, r1, 0
|
||||
@ -4828,7 +4828,7 @@ ply_xtype: @ 82E153C
|
||||
thumb_func_end ply_xtype
|
||||
|
||||
thumb_func_start ply_xatta
|
||||
ply_xatta: @ 82E1550
|
||||
ply_xatta: ; 82E1550
|
||||
ldr r0, [r1, 0x40]
|
||||
ldrb r2, [r0]
|
||||
adds r0, r1, 0
|
||||
@ -4841,7 +4841,7 @@ ply_xatta: @ 82E1550
|
||||
thumb_func_end ply_xatta
|
||||
|
||||
thumb_func_start ply_xdeca
|
||||
ply_xdeca: @ 82E1564
|
||||
ply_xdeca: ; 82E1564
|
||||
ldr r0, [r1, 0x40]
|
||||
ldrb r0, [r0]
|
||||
adds r2, r1, 0
|
||||
@ -4854,7 +4854,7 @@ ply_xdeca: @ 82E1564
|
||||
thumb_func_end ply_xdeca
|
||||
|
||||
thumb_func_start ply_xsust
|
||||
ply_xsust: @ 82E1578
|
||||
ply_xsust: ; 82E1578
|
||||
ldr r0, [r1, 0x40]
|
||||
ldrb r0, [r0]
|
||||
adds r2, r1, 0
|
||||
@ -4867,7 +4867,7 @@ ply_xsust: @ 82E1578
|
||||
thumb_func_end ply_xsust
|
||||
|
||||
thumb_func_start ply_xrele
|
||||
ply_xrele: @ 82E158C
|
||||
ply_xrele: ; 82E158C
|
||||
ldr r0, [r1, 0x40]
|
||||
ldrb r0, [r0]
|
||||
adds r2, r1, 0
|
||||
@ -4880,7 +4880,7 @@ ply_xrele: @ 82E158C
|
||||
thumb_func_end ply_xrele
|
||||
|
||||
thumb_func_start ply_xiecv
|
||||
ply_xiecv: @ 82E15A0
|
||||
ply_xiecv: ; 82E15A0
|
||||
ldr r0, [r1, 0x40]
|
||||
ldrb r2, [r0]
|
||||
strb r2, [r1, 0x1E]
|
||||
@ -4890,7 +4890,7 @@ ply_xiecv: @ 82E15A0
|
||||
thumb_func_end ply_xiecv
|
||||
|
||||
thumb_func_start ply_xiecl
|
||||
ply_xiecl: @ 82E15AC
|
||||
ply_xiecl: ; 82E15AC
|
||||
ldr r0, [r1, 0x40]
|
||||
ldrb r2, [r0]
|
||||
strb r2, [r1, 0x1F]
|
||||
@ -4900,7 +4900,7 @@ ply_xiecl: @ 82E15AC
|
||||
thumb_func_end ply_xiecl
|
||||
|
||||
thumb_func_start ply_xleng
|
||||
ply_xleng: @ 82E15B8
|
||||
ply_xleng: ; 82E15B8
|
||||
ldr r0, [r1, 0x40]
|
||||
ldrb r0, [r0]
|
||||
adds r2, r1, 0
|
||||
@ -4913,7 +4913,7 @@ ply_xleng: @ 82E15B8
|
||||
thumb_func_end ply_xleng
|
||||
|
||||
thumb_func_start ply_xswee
|
||||
ply_xswee: @ 82E15CC
|
||||
ply_xswee: ; 82E15CC
|
||||
ldr r0, [r1, 0x40]
|
||||
ldrb r0, [r0]
|
||||
adds r2, r1, 0
|
||||
@ -4926,7 +4926,7 @@ ply_xswee: @ 82E15CC
|
||||
thumb_func_end ply_xswee
|
||||
|
||||
thumb_func_start ply_xcmd0C
|
||||
ply_xcmd0C: @ 82E15E0
|
||||
ply_xcmd0C: ; 82E15E0
|
||||
push {r4,lr}
|
||||
adds r3, r1, 0
|
||||
ldr r4, [r3, 0x40]
|
||||
@ -4966,7 +4966,7 @@ _082E1620:
|
||||
thumb_func_end ply_xcmd0C
|
||||
|
||||
thumb_func_start ply_xcmd0D
|
||||
ply_xcmd0D: @ 82E1628
|
||||
ply_xcmd0D: ; 82E1628
|
||||
push {r4,lr}
|
||||
ldr r2, [r1, 0x40]
|
||||
ldr r0, _082E1660
|
||||
@ -5002,12 +5002,12 @@ _082E166C: .4byte 0x00ffffff
|
||||
thumb_func_end ply_xcmd0D
|
||||
|
||||
thumb_func_start DummyFunc_rev
|
||||
DummyFunc_rev: @ 82E1670
|
||||
DummyFunc_rev: ; 82E1670
|
||||
bx lr
|
||||
thumb_func_end DummyFunc_rev
|
||||
|
||||
thumb_func_start sub_82E1674
|
||||
sub_82E1674: @ 82E1674
|
||||
sub_82E1674: ; 82E1674
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -5112,7 +5112,7 @@ _082E1740: .4byte 0x68736d53
|
||||
thumb_func_end sub_82E1674
|
||||
|
||||
thumb_func_start sub_82E1744
|
||||
sub_82E1744: @ 82E1744
|
||||
sub_82E1744: ; 82E1744
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r2, _082E1754
|
||||
@ -5125,7 +5125,7 @@ _082E1754: .4byte 0x030077b0
|
||||
thumb_func_end sub_82E1744
|
||||
|
||||
thumb_func_start sub_82E1758
|
||||
sub_82E1758: @ 82E1758
|
||||
sub_82E1758: ; 82E1758
|
||||
ldr r2, _082E176C
|
||||
lsls r0, 24
|
||||
asrs r0, 24
|
||||
@ -5140,7 +5140,7 @@ _082E176C: .4byte 0x030077b0
|
||||
thumb_func_end sub_82E1758
|
||||
|
||||
thumb_func_start sub_82E1770
|
||||
sub_82E1770: @ 82E1770
|
||||
sub_82E1770: ; 82E1770
|
||||
push {r4-r6,lr}
|
||||
lsls r0, 16
|
||||
ldr r3, _082E17A4
|
||||
@ -5172,7 +5172,7 @@ _082E17A4: .4byte 0x030077b0
|
||||
thumb_func_end sub_82E1770
|
||||
|
||||
thumb_func_start sub_82E17A8
|
||||
sub_82E17A8: @ 82E17A8
|
||||
sub_82E17A8: ; 82E17A8
|
||||
ldr r1, _082E17B0
|
||||
strh r0, [r1, 0x2E]
|
||||
bx lr
|
||||
@ -5181,7 +5181,7 @@ _082E17B0: .4byte 0x030077b0
|
||||
thumb_func_end sub_82E17A8
|
||||
|
||||
thumb_func_start sub_82E17B4
|
||||
sub_82E17B4: @ 82E17B4
|
||||
sub_82E17B4: ; 82E17B4
|
||||
ldr r1, _082E17BC
|
||||
adds r1, 0x26
|
||||
strb r0, [r1]
|
||||
@ -5191,7 +5191,7 @@ _082E17BC: .4byte 0x030077b0
|
||||
thumb_func_end sub_82E17B4
|
||||
|
||||
thumb_func_start sub_82E17C0
|
||||
sub_82E17C0: @ 82E17C0
|
||||
sub_82E17C0: ; 82E17C0
|
||||
ldr r1, _082E17C8
|
||||
str r0, [r1, 0x20]
|
||||
bx lr
|
||||
@ -5200,7 +5200,7 @@ _082E17C8: .4byte 0x030077b0
|
||||
thumb_func_end sub_82E17C0
|
||||
|
||||
thumb_func_start sub_82E17CC
|
||||
sub_82E17CC: @ 82E17CC
|
||||
sub_82E17CC: ; 82E17CC
|
||||
ldr r1, [r0, 0x2C]
|
||||
ldr r0, [r1, 0x20]
|
||||
cmp r0, 0
|
||||
@ -5217,7 +5217,7 @@ _082E17E0:
|
||||
thumb_func_end sub_82E17CC
|
||||
|
||||
thumb_func_start sub_82E17E4
|
||||
sub_82E17E4: @ 82E17E4
|
||||
sub_82E17E4: ; 82E17E4
|
||||
lsls r0, 24
|
||||
lsrs r1, r0, 24
|
||||
cmp r0, 0
|
||||
@ -5244,7 +5244,7 @@ _082E180C: .4byte 0x030077b0
|
||||
thumb_func_end sub_82E17E4
|
||||
|
||||
thumb_func_start sub_82E1810
|
||||
sub_82E1810: @ 82E1810
|
||||
sub_82E1810: ; 82E1810
|
||||
ldr r1, _082E1828
|
||||
ldr r2, [r1]
|
||||
cmp r0, 0
|
||||
@ -5278,7 +5278,7 @@ _082E184C: .4byte 0x00003302
|
||||
thumb_func_end sub_82E1810
|
||||
|
||||
thumb_func_start sub_82E1850
|
||||
sub_82E1850: @ 82E1850
|
||||
sub_82E1850: ; 82E1850
|
||||
ldr r1, _082E1858
|
||||
strb r0, [r1, 0x2]
|
||||
bx lr
|
||||
|
302
asm/librfu.s
302
asm/librfu.s
File diff suppressed because it is too large
Load Diff
@ -59,7 +59,7 @@
|
||||
.byte \glyph_height
|
||||
.byte \glyph_spacing
|
||||
.byte \line_spacing
|
||||
.byte \text_color << 4 @ low nybble seems unused
|
||||
.byte \text_color << 4 ; low nybble seems unused
|
||||
.byte (\shadow_color << 4) | \bg_color
|
||||
.2byte 0 @ padding
|
||||
.2byte 0 ; padding
|
||||
.endm
|
||||
|
218
asm/main.s
218
asm/main.s
@ -37,10 +37,10 @@ Main:
|
||||
ldr r0, =0x03005d88
|
||||
ldr r0, [r0]
|
||||
cmp r0, 0x1
|
||||
beq _08000414
|
||||
beq @08000414
|
||||
movs r0, 0
|
||||
bl set_callback2
|
||||
_08000414:
|
||||
@08000414:
|
||||
ldr r2, =0x030022b4
|
||||
strb r4, [r2]
|
||||
ldr r1, =0x03000000
|
||||
@ -52,36 +52,36 @@ _08000414:
|
||||
movs r0, 0
|
||||
mov r8, r0
|
||||
adds r6, r2, 0
|
||||
_0800042A:
|
||||
@0800042A:
|
||||
bl load_keys
|
||||
ldr r0, =0x03002700
|
||||
ldrb r0, [r0]
|
||||
cmp r0, 0
|
||||
bne _08000454
|
||||
bne @08000454
|
||||
ldrh r1, [r7, 0x28]
|
||||
movs r0, 0x1
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08000454
|
||||
beq @08000454
|
||||
movs r0, 0xE
|
||||
ands r0, r1
|
||||
cmp r0, 0xE
|
||||
bne _08000454
|
||||
bne @08000454
|
||||
bl rfu_REQ_stopMode
|
||||
bl rfu_waitREQComplete
|
||||
bl do_reset
|
||||
_08000454:
|
||||
@08000454:
|
||||
bl sub_8087634
|
||||
cmp r0, 0x1
|
||||
bne _0800048C
|
||||
bne @0800048C
|
||||
strb r0, [r6]
|
||||
bl call_callbacks_wrapper
|
||||
movs r0, 0
|
||||
strb r0, [r6]
|
||||
b _080004B2
|
||||
b @080004B2
|
||||
.align 2, 0
|
||||
.pool
|
||||
_0800048C:
|
||||
@0800048C:
|
||||
ldr r5, =0x030022b4
|
||||
movs r0, 0
|
||||
strb r0, [r5]
|
||||
@ -89,7 +89,7 @@ _0800048C:
|
||||
bl sub_80875C8
|
||||
adds r4, r0, 0
|
||||
cmp r4, 0x1
|
||||
bne _080004B2
|
||||
bne @080004B2
|
||||
movs r0, 0
|
||||
strh r0, [r7, 0x2E]
|
||||
bl copy_queue_clear
|
||||
@ -97,32 +97,32 @@ _0800048C:
|
||||
bl call_callbacks_wrapper
|
||||
mov r2, r8
|
||||
strb r2, [r5]
|
||||
_080004B2:
|
||||
@080004B2:
|
||||
bl gametime_increment
|
||||
bl sound_something
|
||||
bl wait_for_vblank
|
||||
b _0800042A
|
||||
b @0800042A
|
||||
.align 2, 0
|
||||
.pool
|
||||
thumb_func_end Main
|
||||
|
||||
thumb_func_start call_callbacks_wrapper
|
||||
@ void call_callbacks_wrapper()
|
||||
call_callbacks_wrapper: @ 80004C4
|
||||
; void call_callbacks_wrapper()
|
||||
call_callbacks_wrapper: ; 80004C4
|
||||
push {lr}
|
||||
bl sub_800B40C
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _080004D4
|
||||
bne @080004D4
|
||||
bl call_callbacks
|
||||
_080004D4:
|
||||
@080004D4:
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end call_callbacks_wrapper
|
||||
|
||||
thumb_func_start init_saveblock_ptrs_and_set_copyright_callback2
|
||||
@ void init_saveblock_ptrs_and_set_copyright_callback2()
|
||||
init_saveblock_ptrs_and_set_copyright_callback2: @ 80004D8
|
||||
; void init_saveblock_ptrs_and_set_copyright_callback2()
|
||||
init_saveblock_ptrs_and_set_copyright_callback2: ; 80004D8
|
||||
push {lr}
|
||||
ldr r2, =0x030022c0
|
||||
movs r0, 0
|
||||
@ -146,20 +146,20 @@ init_saveblock_ptrs_and_set_copyright_callback2: @ 80004D8
|
||||
thumb_func_end init_saveblock_ptrs_and_set_copyright_callback2
|
||||
|
||||
thumb_func_start call_callbacks
|
||||
@ void call_callbacks()
|
||||
call_callbacks: @ 800051C
|
||||
; void call_callbacks()
|
||||
call_callbacks: ; 800051C
|
||||
push {r4,lr}
|
||||
ldr r4, =0x030022c0
|
||||
ldr r0, [r4]
|
||||
cmp r0, 0
|
||||
beq _0800052A
|
||||
beq @0800052A
|
||||
bl _call_via_r0
|
||||
_0800052A:
|
||||
@0800052A:
|
||||
ldr r0, [r4, 0x4]
|
||||
cmp r0, 0
|
||||
beq _08000534
|
||||
beq @08000534
|
||||
bl _call_via_r0
|
||||
_08000534:
|
||||
@08000534:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
@ -168,8 +168,8 @@ _08000534:
|
||||
thumb_func_end call_callbacks
|
||||
|
||||
thumb_func_start set_callback2
|
||||
@ void set_callback2(void ( *func)())
|
||||
set_callback2: @ 8000540
|
||||
; void set_callback2(void ( *func)())
|
||||
set_callback2: ; 8000540
|
||||
ldr r1, =0x030022c0
|
||||
str r0, [r1, 0x4]
|
||||
movs r0, 0x87
|
||||
@ -183,8 +183,8 @@ set_callback2: @ 8000540
|
||||
thumb_func_end set_callback2
|
||||
|
||||
thumb_func_start start_timer1
|
||||
@ void start_timer1()
|
||||
start_timer1: @ 8000554
|
||||
; void start_timer1()
|
||||
start_timer1: ; 8000554
|
||||
ldr r1, =0x04000106
|
||||
movs r0, 0x80
|
||||
strh r0, [r1]
|
||||
@ -194,8 +194,8 @@ start_timer1: @ 8000554
|
||||
thumb_func_end start_timer1
|
||||
|
||||
thumb_func_start set_rand_seed_and_trainer_id_hi
|
||||
@ void set_rand_seed_and_trainer_id_hi()
|
||||
set_rand_seed_and_trainer_id_hi: @ 8000560
|
||||
; void set_rand_seed_and_trainer_id_hi()
|
||||
set_rand_seed_and_trainer_id_hi: ; 8000560
|
||||
push {r4,lr}
|
||||
ldr r0, =0x04000104
|
||||
ldrh r4, [r0]
|
||||
@ -214,8 +214,8 @@ set_rand_seed_and_trainer_id_hi: @ 8000560
|
||||
thumb_func_end set_rand_seed_and_trainer_id_hi
|
||||
|
||||
thumb_func_start get_trainer_id_hi
|
||||
@ u16 get_trainer_id_hi()
|
||||
get_trainer_id_hi: @ 8000588
|
||||
; u16 get_trainer_id_hi()
|
||||
get_trainer_id_hi: ; 8000588
|
||||
ldr r0, =0x02020000
|
||||
ldrh r0, [r0]
|
||||
bx lr
|
||||
@ -224,8 +224,8 @@ get_trainer_id_hi: @ 8000588
|
||||
thumb_func_end get_trainer_id_hi
|
||||
|
||||
thumb_func_start lcd_enable_vcount_irq_at_150px
|
||||
@ void lcd_enable_vcount_irq_at_150px()
|
||||
lcd_enable_vcount_irq_at_150px: @ 8000594
|
||||
; void lcd_enable_vcount_irq_at_150px()
|
||||
lcd_enable_vcount_irq_at_150px: ; 8000594
|
||||
push {lr}
|
||||
movs r0, 0x4
|
||||
bl lcd_io_get
|
||||
@ -246,8 +246,8 @@ lcd_enable_vcount_irq_at_150px: @ 8000594
|
||||
thumb_func_end lcd_enable_vcount_irq_at_150px
|
||||
|
||||
thumb_func_start init_keypad_data
|
||||
@ void init_keypad_data()
|
||||
init_keypad_data: @ 80005BC
|
||||
; void init_keypad_data()
|
||||
init_keypad_data: ; 80005BC
|
||||
ldr r1, =0x030026fc
|
||||
movs r0, 0x5
|
||||
strh r0, [r1]
|
||||
@ -267,8 +267,8 @@ init_keypad_data: @ 80005BC
|
||||
thumb_func_end init_keypad_data
|
||||
|
||||
thumb_func_start load_keys
|
||||
@ void load_keys()
|
||||
load_keys: @ 80005E4
|
||||
; void load_keys()
|
||||
load_keys: ; 80005E4
|
||||
push {lr}
|
||||
ldr r0, =0x04000130
|
||||
ldrh r1, [r0]
|
||||
@ -285,62 +285,62 @@ load_keys: @ 80005E4
|
||||
strh r0, [r1, 0x30]
|
||||
adds r2, r1, 0
|
||||
cmp r3, 0
|
||||
beq _08000630
|
||||
beq @08000630
|
||||
ldrh r0, [r2, 0x2C]
|
||||
cmp r0, r3
|
||||
bne _08000630
|
||||
bne @08000630
|
||||
ldrh r0, [r2, 0x32]
|
||||
subs r0, 0x1
|
||||
strh r0, [r2, 0x32]
|
||||
lsls r0, 16
|
||||
cmp r0, 0
|
||||
bne _08000636
|
||||
bne @08000636
|
||||
strh r3, [r2, 0x30]
|
||||
ldr r0, =0x030026fc
|
||||
b _08000632
|
||||
b @08000632
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000630:
|
||||
@08000630:
|
||||
ldr r0, =0x030022b0
|
||||
_08000632:
|
||||
@08000632:
|
||||
ldrh r0, [r0]
|
||||
strh r0, [r2, 0x32]
|
||||
_08000636:
|
||||
@08000636:
|
||||
strh r3, [r2, 0x28]
|
||||
strh r3, [r2, 0x2C]
|
||||
ldr r0, =0x03005d90
|
||||
ldr r0, [r0]
|
||||
ldrb r0, [r0, 0x13]
|
||||
cmp r0, 0x2
|
||||
bne _08000668
|
||||
bne @08000668
|
||||
ldrh r1, [r2, 0x2E]
|
||||
movs r3, 0x80
|
||||
lsls r3, 2
|
||||
adds r0, r3, 0
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08000658
|
||||
beq @08000658
|
||||
movs r0, 0x1
|
||||
orrs r0, r1
|
||||
strh r0, [r2, 0x2E]
|
||||
_08000658:
|
||||
@08000658:
|
||||
ldrh r1, [r2, 0x2C]
|
||||
adds r0, r3, 0
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08000668
|
||||
beq @08000668
|
||||
movs r0, 0x1
|
||||
orrs r0, r1
|
||||
strh r0, [r2, 0x2C]
|
||||
_08000668:
|
||||
@08000668:
|
||||
ldrh r1, [r2, 0x2E]
|
||||
ldrh r0, [r2, 0x36]
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08000676
|
||||
beq @08000676
|
||||
movs r0, 0x1
|
||||
strh r0, [r2, 0x34]
|
||||
_08000676:
|
||||
@08000676:
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
@ -348,20 +348,20 @@ _08000676:
|
||||
thumb_func_end load_keys
|
||||
|
||||
thumb_func_start init_irq_handler
|
||||
@ void init_irq_handler()
|
||||
init_irq_handler: @ 8000684
|
||||
; void init_irq_handler()
|
||||
init_irq_handler: ; 8000684
|
||||
push {r4,r5,lr}
|
||||
ldr r5, =InterruptMain
|
||||
ldr r4, =0x03002750
|
||||
ldr r3, =gRomInterruptTable
|
||||
ldr r2, =0x03002710
|
||||
movs r1, 0xD
|
||||
_08000690:
|
||||
@08000690:
|
||||
ldm r3!, {r0}
|
||||
stm r2!, {r0}
|
||||
subs r1, 0x1
|
||||
cmp r1, 0
|
||||
bge _08000690
|
||||
bge @08000690
|
||||
ldr r0, =0x040000d4
|
||||
str r5, [r0]
|
||||
str r4, [r0, 0x4]
|
||||
@ -389,8 +389,8 @@ _08000690:
|
||||
thumb_func_end init_irq_handler
|
||||
|
||||
thumb_func_start SetVBlankCallback
|
||||
@ void SetVBlankCallback(void ( *func)())
|
||||
SetVBlankCallback: @ 80006F0
|
||||
; void SetVBlankCallback(void ( *func)())
|
||||
SetVBlankCallback: ; 80006F0
|
||||
ldr r1, =0x030022c0
|
||||
str r0, [r1, 0xC]
|
||||
bx lr
|
||||
@ -399,8 +399,8 @@ SetVBlankCallback: @ 80006F0
|
||||
thumb_func_end SetVBlankCallback
|
||||
|
||||
thumb_func_start SetHBlankCallback
|
||||
@ void SetHBlankCallback(void ( *func)())
|
||||
SetHBlankCallback: @ 80006FC
|
||||
; void SetHBlankCallback(void ( *func)())
|
||||
SetHBlankCallback: ; 80006FC
|
||||
ldr r1, =0x030022c0
|
||||
str r0, [r1, 0x10]
|
||||
bx lr
|
||||
@ -409,7 +409,7 @@ SetHBlankCallback: @ 80006FC
|
||||
thumb_func_end SetHBlankCallback
|
||||
|
||||
thumb_func_start SetVCountCallback
|
||||
SetVCountCallback: @ 8000708
|
||||
SetVCountCallback: ; 8000708
|
||||
ldr r1, =0x030022c0
|
||||
str r0, [r1, 0x14]
|
||||
bx lr
|
||||
@ -418,8 +418,8 @@ SetVCountCallback: @ 8000708
|
||||
thumb_func_end SetVCountCallback
|
||||
|
||||
thumb_func_start restore_serial_timer3_irq_handlers
|
||||
@ void restore_serial_timer3_irq_handlers()
|
||||
restore_serial_timer3_irq_handlers: @ 8000714
|
||||
; void restore_serial_timer3_irq_handlers()
|
||||
restore_serial_timer3_irq_handlers: ; 8000714
|
||||
ldr r0, =0x03002710
|
||||
ldr r1, =irq_serial + 1
|
||||
str r1, [r0, 0x4]
|
||||
@ -431,8 +431,8 @@ restore_serial_timer3_irq_handlers: @ 8000714
|
||||
thumb_func_end restore_serial_timer3_irq_handlers
|
||||
|
||||
thumb_func_start set_serial_callback
|
||||
@ void set_serial_callback(void ( *func)())
|
||||
set_serial_callback: @ 800072C
|
||||
; void set_serial_callback(void ( *func)())
|
||||
set_serial_callback: ; 800072C
|
||||
ldr r1, =0x030022c0
|
||||
str r0, [r1, 0x18]
|
||||
bx lr
|
||||
@ -441,24 +441,24 @@ set_serial_callback: @ 800072C
|
||||
thumb_func_end set_serial_callback
|
||||
|
||||
thumb_func_start irq_vblank
|
||||
@ void irq_vblank()
|
||||
irq_vblank: @ 8000738
|
||||
; void irq_vblank()
|
||||
irq_vblank: ; 8000738
|
||||
push {r4,lr}
|
||||
ldr r0, =0x030030fc
|
||||
ldrb r0, [r0]
|
||||
cmp r0, 0
|
||||
beq _0800074C
|
||||
beq @0800074C
|
||||
bl rfu_syncVBlank__
|
||||
b _08000758
|
||||
b @08000758
|
||||
.align 2, 0
|
||||
.pool
|
||||
_0800074C:
|
||||
@0800074C:
|
||||
ldr r0, =0x03002748
|
||||
ldrb r0, [r0]
|
||||
cmp r0, 0
|
||||
bne _08000758
|
||||
bne @08000758
|
||||
bl sub_800B9B8
|
||||
_08000758:
|
||||
@08000758:
|
||||
ldr r0, =0x030022c0
|
||||
ldr r1, [r0, 0x20]
|
||||
adds r1, 0x1
|
||||
@ -467,20 +467,20 @@ _08000758:
|
||||
ldr r1, [r1]
|
||||
adds r4, r0, 0
|
||||
cmp r1, 0
|
||||
beq _08000778
|
||||
beq @08000778
|
||||
ldr r2, [r1]
|
||||
movs r0, 0x2
|
||||
negs r0, r0
|
||||
cmp r2, r0
|
||||
bhi _08000778
|
||||
bhi @08000778
|
||||
adds r0, r2, 0x1
|
||||
str r0, [r1]
|
||||
_08000778:
|
||||
@08000778:
|
||||
ldr r0, [r4, 0xC]
|
||||
cmp r0, 0
|
||||
beq _08000782
|
||||
beq @08000782
|
||||
bl _call_via_r0
|
||||
_08000782:
|
||||
@08000782:
|
||||
ldr r0, [r4, 0x24]
|
||||
adds r0, 0x1
|
||||
str r0, [r4, 0x24]
|
||||
@ -498,16 +498,16 @@ _08000782:
|
||||
movs r0, 0x2
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _080007BA
|
||||
beq @080007BA
|
||||
ldr r0, =0x02022fec
|
||||
ldr r0, [r0]
|
||||
ldr r1, =0x013f0102
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
bne _080007BE
|
||||
_080007BA:
|
||||
bne @080007BE
|
||||
@080007BA:
|
||||
bl GenerateRandomNumber
|
||||
_080007BE:
|
||||
@080007BE:
|
||||
bl sub_800E174
|
||||
ldr r2, =0x03007ff8
|
||||
ldrh r0, [r2]
|
||||
@ -527,8 +527,8 @@ _080007BE:
|
||||
thumb_func_end irq_vblank
|
||||
|
||||
thumb_func_start flash_timeout_start_on_timer_2
|
||||
@ void flash_timeout_start_on_timer_2()
|
||||
flash_timeout_start_on_timer_2: @ 8000800
|
||||
; void flash_timeout_start_on_timer_2()
|
||||
flash_timeout_start_on_timer_2: ; 8000800
|
||||
push {lr}
|
||||
ldr r1, =0x0300272c
|
||||
movs r0, 0x2
|
||||
@ -540,15 +540,15 @@ flash_timeout_start_on_timer_2: @ 8000800
|
||||
thumb_func_end flash_timeout_start_on_timer_2
|
||||
|
||||
thumb_func_start irq_hblank
|
||||
@ void irq_hblank()
|
||||
irq_hblank: @ 8000814
|
||||
; void irq_hblank()
|
||||
irq_hblank: ; 8000814
|
||||
push {r4,lr}
|
||||
ldr r4, =0x030022c0
|
||||
ldr r0, [r4, 0x10]
|
||||
cmp r0, 0
|
||||
beq _08000822
|
||||
beq @08000822
|
||||
bl _call_via_r0
|
||||
_08000822:
|
||||
@08000822:
|
||||
ldr r2, =0x03007ff8
|
||||
ldrh r0, [r2]
|
||||
movs r1, 0x2
|
||||
@ -566,15 +566,15 @@ _08000822:
|
||||
thumb_func_end irq_hblank
|
||||
|
||||
thumb_func_start irq_vcount
|
||||
@ void irq_vcount()
|
||||
irq_vcount: @ 8000844
|
||||
; void irq_vcount()
|
||||
irq_vcount: ; 8000844
|
||||
push {r4,lr}
|
||||
ldr r4, =0x030022c0
|
||||
ldr r0, [r4, 0x14]
|
||||
cmp r0, 0
|
||||
beq _08000852
|
||||
beq @08000852
|
||||
bl _call_via_r0
|
||||
_08000852:
|
||||
@08000852:
|
||||
bl SoundVSync_rev01
|
||||
ldr r2, =0x03007ff8
|
||||
ldrh r0, [r2]
|
||||
@ -593,15 +593,15 @@ _08000852:
|
||||
thumb_func_end irq_vcount
|
||||
|
||||
thumb_func_start irq_serial
|
||||
@ void irq_serial()
|
||||
irq_serial: @ 8000878
|
||||
; void irq_serial()
|
||||
irq_serial: ; 8000878
|
||||
push {r4,lr}
|
||||
ldr r4, =0x030022c0
|
||||
ldr r0, [r4, 0x18]
|
||||
cmp r0, 0
|
||||
beq _08000886
|
||||
beq @08000886
|
||||
bl _call_via_r0
|
||||
_08000886:
|
||||
@08000886:
|
||||
ldr r2, =0x03007ff8
|
||||
ldrh r0, [r2]
|
||||
movs r1, 0x80
|
||||
@ -619,14 +619,14 @@ _08000886:
|
||||
thumb_func_end irq_serial
|
||||
|
||||
thumb_func_start irq_other
|
||||
@ void irq_other()
|
||||
irq_other: @ 80008A8
|
||||
; void irq_other()
|
||||
irq_other: ; 80008A8
|
||||
bx lr
|
||||
thumb_func_end irq_other
|
||||
|
||||
thumb_func_start wait_for_vblank
|
||||
@ void wait_for_vblank()
|
||||
wait_for_vblank: @ 80008AC
|
||||
; void wait_for_vblank()
|
||||
wait_for_vblank: ; 80008AC
|
||||
push {lr}
|
||||
ldr r2, =0x030022c0
|
||||
ldrh r1, [r2, 0x1C]
|
||||
@ -638,15 +638,15 @@ wait_for_vblank: @ 80008AC
|
||||
movs r0, 0x1
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
bne _080008D0
|
||||
bne @080008D0
|
||||
movs r3, 0x1
|
||||
_080008C6:
|
||||
@080008C6:
|
||||
ldrh r1, [r2, 0x1C]
|
||||
adds r0, r3, 0
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _080008C6
|
||||
_080008D0:
|
||||
beq @080008C6
|
||||
@080008D0:
|
||||
pop {r0}
|
||||
bx r0
|
||||
.align 2, 0
|
||||
@ -654,7 +654,7 @@ _080008D0:
|
||||
thumb_func_end wait_for_vblank
|
||||
|
||||
thumb_func_start sub_80008DC
|
||||
sub_80008DC: @ 80008DC
|
||||
sub_80008DC: ; 80008DC
|
||||
ldr r1, =0x0203cf5c
|
||||
str r0, [r1]
|
||||
bx lr
|
||||
@ -663,7 +663,7 @@ sub_80008DC: @ 80008DC
|
||||
thumb_func_end sub_80008DC
|
||||
|
||||
thumb_func_start sub_80008E8
|
||||
sub_80008E8: @ 80008E8
|
||||
sub_80008E8: ; 80008E8
|
||||
ldr r1, =0x0203cf5c
|
||||
movs r0, 0
|
||||
str r0, [r1]
|
||||
@ -673,8 +673,8 @@ sub_80008E8: @ 80008E8
|
||||
thumb_func_end sub_80008E8
|
||||
|
||||
thumb_func_start do_reset
|
||||
@ void do_reset()
|
||||
do_reset: @ 80008F4
|
||||
; void do_reset()
|
||||
do_reset: ; 80008F4
|
||||
push {r4,lr}
|
||||
ldr r1, =0x04000208
|
||||
movs r0, 0
|
||||
@ -722,7 +722,7 @@ do_reset: @ 80008F4
|
||||
thumb_func_end do_reset
|
||||
|
||||
thumb_func_start sub_8000964
|
||||
sub_8000964: @ 8000964
|
||||
sub_8000964: ; 8000964
|
||||
push {lr}
|
||||
sub sp, 0x4
|
||||
mov r1, sp
|
||||
|
150
asm/malloc.s
150
asm/malloc.s
@ -1,6 +1,6 @@
|
||||
thumb_func_start malloc_header
|
||||
@ void malloc_header(struct memblk *blk, struct memblk *prev, struct memblk *next, u32 size)
|
||||
malloc_header: @ 8000988
|
||||
; void malloc_header(struct memblk *blk, struct memblk *prev, struct memblk *next, u32 size)
|
||||
malloc_header: ; 8000988
|
||||
push {r4,lr}
|
||||
movs r4, 0
|
||||
strh r4, [r0]
|
||||
@ -17,8 +17,8 @@ malloc_header: @ 8000988
|
||||
thumb_func_end malloc_header
|
||||
|
||||
thumb_func_start malloc_unlinked_header
|
||||
@ void malloc_unlinked_header(struct memblk *blk, u32 size)
|
||||
malloc_unlinked_header: @ 80009A4
|
||||
; void malloc_unlinked_header(struct memblk *blk, u32 size)
|
||||
malloc_unlinked_header: ; 80009A4
|
||||
push {lr}
|
||||
adds r2, r0, 0
|
||||
adds r3, r1, 0
|
||||
@ -30,33 +30,33 @@ malloc_unlinked_header: @ 80009A4
|
||||
thumb_func_end malloc_unlinked_header
|
||||
|
||||
thumb_func_start malloc_core
|
||||
@ void *malloc_core(struct memblk *head, u32 size)
|
||||
malloc_core: @ 80009B8
|
||||
; void *malloc_core(struct memblk *head, u32 size)
|
||||
malloc_core: ; 80009B8
|
||||
push {r4-r6,lr}
|
||||
adds r4, r0, 0
|
||||
adds r6, r4, 0
|
||||
movs r0, 0x3
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _080009CC
|
||||
beq @080009CC
|
||||
lsrs r0, r1, 2
|
||||
adds r0, 0x1
|
||||
lsls r1, r0, 2
|
||||
_080009CC:
|
||||
@080009CC:
|
||||
movs r2, 0x1
|
||||
_080009CE:
|
||||
@080009CE:
|
||||
ldrh r0, [r4]
|
||||
cmp r0, 0
|
||||
bne _08000A0C
|
||||
bne @08000A0C
|
||||
ldr r3, [r4, 0x4]
|
||||
cmp r3, r1
|
||||
bcc _08000A0C
|
||||
bcc @08000A0C
|
||||
subs r0, r3, r1
|
||||
cmp r0, 0x1F
|
||||
bhi _080009E4
|
||||
bhi @080009E4
|
||||
strh r2, [r4]
|
||||
b _08000A06
|
||||
_080009E4:
|
||||
b @08000A06
|
||||
@080009E4:
|
||||
subs r3, 0x10
|
||||
subs r3, r1
|
||||
adds r0, r1, 0
|
||||
@ -71,32 +71,32 @@ _080009E4:
|
||||
str r5, [r4, 0xC]
|
||||
ldr r0, [r5, 0xC]
|
||||
cmp r0, r6
|
||||
beq _08000A06
|
||||
beq @08000A06
|
||||
str r5, [r0, 0x8]
|
||||
_08000A06:
|
||||
@08000A06:
|
||||
adds r0, r4, 0
|
||||
adds r0, 0x10
|
||||
b _08000A18
|
||||
_08000A0C:
|
||||
b @08000A18
|
||||
@08000A0C:
|
||||
ldr r0, [r4, 0xC]
|
||||
cmp r0, r6
|
||||
beq _08000A16
|
||||
beq @08000A16
|
||||
adds r4, r0, 0
|
||||
b _080009CE
|
||||
_08000A16:
|
||||
b @080009CE
|
||||
@08000A16:
|
||||
movs r0, 0
|
||||
_08000A18:
|
||||
@08000A18:
|
||||
pop {r4-r6}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end malloc_core
|
||||
|
||||
thumb_func_start free_core
|
||||
@ void free_core(struct memblk *head, struct memblk *node)
|
||||
free_core: @ 8000A20
|
||||
; void free_core(struct memblk *head, struct memblk *node)
|
||||
free_core: ; 8000A20
|
||||
push {r4,r5,lr}
|
||||
cmp r1, 0
|
||||
beq _08000A7C
|
||||
beq @08000A7C
|
||||
adds r5, r0, 0
|
||||
adds r2, r1, 0
|
||||
subs r2, 0x10
|
||||
@ -104,10 +104,10 @@ free_core: @ 8000A20
|
||||
strh r0, [r2]
|
||||
ldr r3, [r2, 0xC]
|
||||
cmp r3, r5
|
||||
beq _08000A54
|
||||
beq @08000A54
|
||||
ldrh r4, [r3]
|
||||
cmp r4, 0
|
||||
bne _08000A54
|
||||
bne @08000A54
|
||||
ldr r0, [r2, 0x4]
|
||||
adds r0, 0x10
|
||||
ldr r1, [r3, 0x4]
|
||||
@ -118,23 +118,23 @@ free_core: @ 8000A20
|
||||
ldr r0, [r0, 0xC]
|
||||
str r0, [r2, 0xC]
|
||||
cmp r0, r5
|
||||
beq _08000A54
|
||||
beq @08000A54
|
||||
str r2, [r0, 0x8]
|
||||
_08000A54:
|
||||
@08000A54:
|
||||
cmp r2, r5
|
||||
beq _08000A7C
|
||||
beq @08000A7C
|
||||
ldr r1, [r2, 0x8]
|
||||
ldrh r3, [r1]
|
||||
cmp r3, 0
|
||||
bne _08000A7C
|
||||
bne @08000A7C
|
||||
ldr r0, [r2, 0xC]
|
||||
str r0, [r1, 0xC]
|
||||
ldr r1, [r2, 0xC]
|
||||
cmp r1, r5
|
||||
beq _08000A6E
|
||||
beq @08000A6E
|
||||
ldr r0, [r2, 0x8]
|
||||
str r0, [r1, 0x8]
|
||||
_08000A6E:
|
||||
@08000A6E:
|
||||
strh r3, [r2, 0x2]
|
||||
ldr r0, [r2, 0x8]
|
||||
ldr r1, [r0, 0x4]
|
||||
@ -142,30 +142,30 @@ _08000A6E:
|
||||
ldr r2, [r2, 0x4]
|
||||
adds r1, r2
|
||||
str r1, [r0, 0x4]
|
||||
_08000A7C:
|
||||
@08000A7C:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end free_core
|
||||
|
||||
thumb_func_start malloc_core_and_clear
|
||||
@ void *malloc_core_and_clear(struct memblk *head, unsigned int size)
|
||||
malloc_core_and_clear: @ 8000A84
|
||||
; void *malloc_core_and_clear(struct memblk *head, unsigned int size)
|
||||
malloc_core_and_clear: ; 8000A84
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x4
|
||||
adds r4, r1, 0
|
||||
bl malloc_core
|
||||
adds r5, r0, 0
|
||||
cmp r5, 0
|
||||
beq _08000AB8
|
||||
beq @08000AB8
|
||||
movs r0, 0x3
|
||||
ands r0, r4
|
||||
cmp r0, 0
|
||||
beq _08000AA2
|
||||
beq @08000AA2
|
||||
lsrs r0, r4, 2
|
||||
adds r0, 0x1
|
||||
lsls r4, r0, 2
|
||||
_08000AA2:
|
||||
@08000AA2:
|
||||
movs r0, 0
|
||||
str r0, [sp]
|
||||
lsls r2, r4, 9
|
||||
@ -176,7 +176,7 @@ _08000AA2:
|
||||
mov r0, sp
|
||||
adds r1, r5, 0
|
||||
bl CpuSet
|
||||
_08000AB8:
|
||||
@08000AB8:
|
||||
adds r0, r5, 0
|
||||
add sp, 0x4
|
||||
pop {r4,r5}
|
||||
@ -185,8 +185,8 @@ _08000AB8:
|
||||
thumb_func_end malloc_core_and_clear
|
||||
|
||||
thumb_func_start check_memblk_core
|
||||
@ _BOOL4 check_memblk_core(struct memblk *head, struct memblk *node)
|
||||
check_memblk_core: @ 8000AC4
|
||||
; _BOOL4 check_memblk_core(struct memblk *head, struct memblk *node)
|
||||
check_memblk_core: ; 8000AC4
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
adds r3, r1, 0
|
||||
@ -194,52 +194,52 @@ check_memblk_core: @ 8000AC4
|
||||
ldrh r2, [r3, 0x2]
|
||||
ldr r0, =0x0000a3a3
|
||||
cmp r2, r0
|
||||
bne _08000B0A
|
||||
bne @08000B0A
|
||||
ldr r0, [r3, 0xC]
|
||||
ldrh r1, [r0, 0x2]
|
||||
adds r4, r0, 0
|
||||
cmp r1, r2
|
||||
bne _08000B0A
|
||||
bne @08000B0A
|
||||
cmp r4, r5
|
||||
beq _08000AE8
|
||||
beq @08000AE8
|
||||
ldr r0, [r4, 0x8]
|
||||
cmp r0, r3
|
||||
bne _08000B0A
|
||||
_08000AE8:
|
||||
bne @08000B0A
|
||||
@08000AE8:
|
||||
ldr r2, [r3, 0x8]
|
||||
ldrh r1, [r2, 0x2]
|
||||
ldr r0, =0x0000a3a3
|
||||
cmp r1, r0
|
||||
bne _08000B0A
|
||||
bne @08000B0A
|
||||
cmp r2, r5
|
||||
beq _08000AFC
|
||||
beq @08000AFC
|
||||
ldr r0, [r2, 0xC]
|
||||
cmp r0, r3
|
||||
bne _08000B0A
|
||||
_08000AFC:
|
||||
bne @08000B0A
|
||||
@08000AFC:
|
||||
cmp r4, r5
|
||||
beq _08000B14
|
||||
beq @08000B14
|
||||
ldr r0, [r3, 0x4]
|
||||
adds r0, 0x10
|
||||
adds r0, r3, r0
|
||||
cmp r4, r0
|
||||
beq _08000B14
|
||||
_08000B0A:
|
||||
beq @08000B14
|
||||
@08000B0A:
|
||||
movs r0, 0
|
||||
b _08000B16
|
||||
b @08000B16
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000B14:
|
||||
@08000B14:
|
||||
movs r0, 0x1
|
||||
_08000B16:
|
||||
@08000B16:
|
||||
pop {r4,r5}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end check_memblk_core
|
||||
|
||||
thumb_func_start init_malloc
|
||||
@ void init_malloc(u32 heapStart, u32 heapSize)
|
||||
init_malloc: @ 8000B1C
|
||||
; void init_malloc(u32 heapStart, u32 heapSize)
|
||||
init_malloc: ; 8000B1C
|
||||
push {lr}
|
||||
ldr r2, =0x03000004
|
||||
str r0, [r2]
|
||||
@ -253,8 +253,8 @@ init_malloc: @ 8000B1C
|
||||
thumb_func_end init_malloc
|
||||
|
||||
thumb_func_start malloc
|
||||
@ void *malloc(u32 size)
|
||||
malloc: @ 8000B38
|
||||
; void *malloc(u32 size)
|
||||
malloc: ; 8000B38
|
||||
push {lr}
|
||||
adds r1, r0, 0
|
||||
ldr r0, =0x03000004
|
||||
@ -267,8 +267,8 @@ malloc: @ 8000B38
|
||||
thumb_func_end malloc
|
||||
|
||||
thumb_func_start malloc_and_clear
|
||||
@ void *malloc_and_clear(u32 size)
|
||||
malloc_and_clear: @ 8000B4C
|
||||
; void *malloc_and_clear(u32 size)
|
||||
malloc_and_clear: ; 8000B4C
|
||||
push {lr}
|
||||
adds r1, r0, 0
|
||||
ldr r0, =0x03000004
|
||||
@ -281,8 +281,8 @@ malloc_and_clear: @ 8000B4C
|
||||
thumb_func_end malloc_and_clear
|
||||
|
||||
thumb_func_start free
|
||||
@ void free(void *ptr)
|
||||
free: @ 8000B60
|
||||
; void free(void *ptr)
|
||||
free: ; 8000B60
|
||||
push {lr}
|
||||
adds r1, r0, 0
|
||||
ldr r0, =0x03000004
|
||||
@ -295,8 +295,8 @@ free: @ 8000B60
|
||||
thumb_func_end free
|
||||
|
||||
thumb_func_start check_memblk
|
||||
@ _BOOL4 check_memblk(struct memblk *node)
|
||||
check_memblk: @ 8000B74
|
||||
; _BOOL4 check_memblk(struct memblk *node)
|
||||
check_memblk: ; 8000B74
|
||||
push {lr}
|
||||
adds r1, r0, 0
|
||||
ldr r0, =0x03000004
|
||||
@ -309,30 +309,30 @@ check_memblk: @ 8000B74
|
||||
thumb_func_end check_memblk
|
||||
|
||||
thumb_func_start check_all_memblks
|
||||
@ _BOOL4 check_all_memblks()
|
||||
check_all_memblks: @ 8000B88
|
||||
; _BOOL4 check_all_memblks()
|
||||
check_all_memblks: ; 8000B88
|
||||
push {r4,r5,lr}
|
||||
ldr r0, =0x03000004
|
||||
ldr r4, [r0]
|
||||
adds r5, r0, 0
|
||||
_08000B90:
|
||||
@08000B90:
|
||||
ldr r0, [r5]
|
||||
adds r1, r4, 0
|
||||
adds r1, 0x10
|
||||
bl check_memblk_core
|
||||
cmp r0, 0
|
||||
beq _08000BB0
|
||||
beq @08000BB0
|
||||
ldr r4, [r4, 0xC]
|
||||
ldr r0, [r5]
|
||||
cmp r4, r0
|
||||
bne _08000B90
|
||||
bne @08000B90
|
||||
movs r0, 0x1
|
||||
b _08000BB2
|
||||
b @08000BB2
|
||||
.align 2, 0
|
||||
.pool
|
||||
_08000BB0:
|
||||
@08000BB0:
|
||||
movs r0, 0
|
||||
_08000BB2:
|
||||
@08000BB2:
|
||||
pop {r4,r5}
|
||||
pop {r1}
|
||||
bx r1
|
||||
|
@ -1,5 +1,5 @@
|
||||
thumb_func_start sub_8002BDC
|
||||
sub_8002BDC: @ 8002BDC
|
||||
sub_8002BDC: ; 8002BDC
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
@ -36,8 +36,8 @@ sub_8002BDC: @ 8002BDC
|
||||
thumb_func_end sub_8002BDC
|
||||
|
||||
thumb_func_start PixelBlock_CopyRect4Bpp
|
||||
@ void PixelBlock_CopyRect4Bpp(struct PixelBlock *src_pixels_data, struct PixelBlock *dest_pixels_data, u16 src_x, u16 src_y, u16 dest_x, u16 dest_y, u16 dest_w, u16 dest_h, u8 a9)
|
||||
PixelBlock_CopyRect4Bpp: @ 8002C20
|
||||
; void PixelBlock_CopyRect4Bpp(struct PixelBlock *src_pixels_data, struct PixelBlock *dest_pixels_data, u16 src_x, u16 src_y, u16 dest_x, u16 dest_y, u16 dest_w, u16 dest_h, u8 a9)
|
||||
PixelBlock_CopyRect4Bpp: ; 8002C20
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -76,11 +76,11 @@ PixelBlock_CopyRect4Bpp: @ 8002C20
|
||||
adds r2, r4
|
||||
mov r8, r2
|
||||
cmp r0, r4
|
||||
bge _08002C74
|
||||
bge @08002C74
|
||||
ldr r2, [sp, 0x8]
|
||||
adds r0, r2
|
||||
mov r8, r0
|
||||
_08002C74:
|
||||
@08002C74:
|
||||
ldr r4, [sp, 0x4]
|
||||
ldrh r0, [r4, 0x6]
|
||||
mov r1, r9
|
||||
@ -88,10 +88,10 @@ _08002C74:
|
||||
adds r2, r5, r7
|
||||
str r2, [sp, 0x14]
|
||||
cmp r0, r5
|
||||
bge _08002C88
|
||||
bge @08002C88
|
||||
adds r0, r7
|
||||
str r0, [sp, 0x14]
|
||||
_08002C88:
|
||||
@08002C88:
|
||||
ldr r4, [sp]
|
||||
ldrh r1, [r4, 0x4]
|
||||
movs r2, 0x7
|
||||
@ -107,14 +107,14 @@ _08002C88:
|
||||
str r0, [sp, 0x1C]
|
||||
ldr r0, [sp, 0x10]
|
||||
cmp r0, 0xFF
|
||||
bne _08002D46
|
||||
bne @08002D46
|
||||
adds r3, r7, 0
|
||||
mov r1, r9
|
||||
ldr r2, [sp, 0x14]
|
||||
cmp r3, r2
|
||||
blt _08002CB4
|
||||
b _08002DEE
|
||||
_08002CB4:
|
||||
blt @08002CB4
|
||||
b @08002DEE
|
||||
@08002CB4:
|
||||
ldr r5, [sp, 0x8]
|
||||
ldr r6, [sp, 0xC]
|
||||
adds r4, r3, 0x1
|
||||
@ -122,7 +122,7 @@ _08002CB4:
|
||||
adds r0, r1, 0x1
|
||||
str r0, [sp, 0x28]
|
||||
cmp r5, r8
|
||||
bge _08002D3A
|
||||
bge @08002D3A
|
||||
movs r7, 0x3
|
||||
asrs r0, r3, 3
|
||||
ldr r2, [sp, 0x18]
|
||||
@ -139,7 +139,7 @@ _08002CB4:
|
||||
mov r12, r0
|
||||
lsls r0, r1, 29
|
||||
lsrs r3, r0, 27
|
||||
_08002CE4:
|
||||
@08002CE4:
|
||||
asrs r0, r5, 1
|
||||
ands r0, r7
|
||||
ldr r2, [sp]
|
||||
@ -182,21 +182,21 @@ _08002CE4:
|
||||
adds r5, 0x1
|
||||
adds r6, 0x1
|
||||
cmp r5, r8
|
||||
blt _08002CE4
|
||||
_08002D3A:
|
||||
blt @08002CE4
|
||||
@08002D3A:
|
||||
ldr r3, [sp, 0x24]
|
||||
ldr r1, [sp, 0x28]
|
||||
ldr r2, [sp, 0x14]
|
||||
cmp r3, r2
|
||||
blt _08002CB4
|
||||
b _08002DEE
|
||||
_08002D46:
|
||||
blt @08002CB4
|
||||
b @08002DEE
|
||||
@08002D46:
|
||||
adds r3, r7, 0
|
||||
mov r1, r9
|
||||
ldr r4, [sp, 0x14]
|
||||
cmp r3, r4
|
||||
bge _08002DEE
|
||||
_08002D50:
|
||||
bge @08002DEE
|
||||
@08002D50:
|
||||
ldr r5, [sp, 0x8]
|
||||
ldr r6, [sp, 0xC]
|
||||
adds r0, r3, 0x1
|
||||
@ -204,7 +204,7 @@ _08002D50:
|
||||
adds r2, r1, 0x1
|
||||
str r2, [sp, 0x28]
|
||||
cmp r5, r8
|
||||
bge _08002DE4
|
||||
bge @08002DE4
|
||||
movs r4, 0x3
|
||||
mov r9, r4
|
||||
asrs r0, r3, 3
|
||||
@ -223,7 +223,7 @@ _08002D50:
|
||||
mov r12, r0
|
||||
lsls r0, r1, 29
|
||||
lsrs r7, r0, 27
|
||||
_08002D84:
|
||||
@08002D84:
|
||||
asrs r0, r5, 1
|
||||
mov r1, r9
|
||||
ands r0, r1
|
||||
@ -257,7 +257,7 @@ _08002D84:
|
||||
ands r2, r0
|
||||
ldr r0, [sp, 0x10]
|
||||
cmp r2, r0
|
||||
beq _08002DDC
|
||||
beq @08002DDC
|
||||
adds r0, r6, 0
|
||||
ands r0, r3
|
||||
lsls r1, r0, 2
|
||||
@ -268,18 +268,18 @@ _08002D84:
|
||||
ands r0, r1
|
||||
orrs r2, r0
|
||||
strb r2, [r4]
|
||||
_08002DDC:
|
||||
@08002DDC:
|
||||
adds r5, 0x1
|
||||
adds r6, 0x1
|
||||
cmp r5, r8
|
||||
blt _08002D84
|
||||
_08002DE4:
|
||||
blt @08002D84
|
||||
@08002DE4:
|
||||
ldr r3, [sp, 0x24]
|
||||
ldr r1, [sp, 0x28]
|
||||
ldr r2, [sp, 0x14]
|
||||
cmp r3, r2
|
||||
blt _08002D50
|
||||
_08002DEE:
|
||||
blt @08002D50
|
||||
@08002DEE:
|
||||
add sp, 0x2C
|
||||
pop {r3-r5}
|
||||
mov r8, r3
|
||||
@ -291,8 +291,8 @@ _08002DEE:
|
||||
thumb_func_end PixelBlock_CopyRect4Bpp
|
||||
|
||||
thumb_func_start PixelBlock_FillRect4Bpp
|
||||
@ int PixelBlock_FillRect4Bpp(struct PixelBlock *pixels_data, u16 x, u16 y, u16 w, u16 h, u8 fill_value)
|
||||
PixelBlock_FillRect4Bpp: @ 8002E00
|
||||
; int PixelBlock_FillRect4Bpp(struct PixelBlock *pixels_data, u16 x, u16 y, u16 w, u16 h, u8 fill_value)
|
||||
PixelBlock_FillRect4Bpp: ; 8002E00
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -318,17 +318,17 @@ PixelBlock_FillRect4Bpp: @ 8002E00
|
||||
mov r3, r9
|
||||
ldrh r1, [r3, 0x4]
|
||||
cmp r4, r1
|
||||
ble _08002E36
|
||||
ble @08002E36
|
||||
adds r4, r1, 0
|
||||
_08002E36:
|
||||
@08002E36:
|
||||
adds r2, r0
|
||||
mov r12, r2
|
||||
mov r2, r9
|
||||
ldrh r0, [r2, 0x6]
|
||||
cmp r12, r0
|
||||
ble _08002E44
|
||||
ble @08002E44
|
||||
mov r12, r0
|
||||
_08002E44:
|
||||
@08002E44:
|
||||
movs r0, 0x7
|
||||
ands r0, r1
|
||||
adds r0, r1, r0
|
||||
@ -344,19 +344,19 @@ _08002E44:
|
||||
mov r10, r0
|
||||
adds r1, r6, 0
|
||||
cmp r1, r12
|
||||
bge _08002EB6
|
||||
_08002E64:
|
||||
bge @08002EB6
|
||||
@08002E64:
|
||||
ldr r3, [sp]
|
||||
adds r7, r1, 0x1
|
||||
cmp r3, r4
|
||||
bge _08002EB0
|
||||
bge @08002EB0
|
||||
asrs r0, r1, 3
|
||||
ldr r2, [sp, 0x4]
|
||||
muls r0, r2
|
||||
lsls r6, r0, 5
|
||||
lsls r0, r1, 29
|
||||
lsrs r5, r0, 27
|
||||
_08002E78:
|
||||
@08002E78:
|
||||
asrs r2, r3, 1
|
||||
movs r0, 0x3
|
||||
ands r2, r0
|
||||
@ -370,28 +370,28 @@ _08002E78:
|
||||
adds r2, r1, r5
|
||||
lsls r0, r3, 31
|
||||
cmp r0, 0
|
||||
beq _08002E9E
|
||||
beq @08002E9E
|
||||
ldrb r1, [r2]
|
||||
movs r0, 0xF
|
||||
ands r0, r1
|
||||
mov r1, r8
|
||||
b _08002EA6
|
||||
_08002E9E:
|
||||
b @08002EA6
|
||||
@08002E9E:
|
||||
ldrb r1, [r2]
|
||||
movs r0, 0xF0
|
||||
ands r0, r1
|
||||
mov r1, r10
|
||||
_08002EA6:
|
||||
@08002EA6:
|
||||
orrs r0, r1
|
||||
strb r0, [r2]
|
||||
adds r3, 0x1
|
||||
cmp r3, r4
|
||||
blt _08002E78
|
||||
_08002EB0:
|
||||
blt @08002E78
|
||||
@08002EB0:
|
||||
adds r1, r7, 0
|
||||
cmp r1, r12
|
||||
blt _08002E64
|
||||
_08002EB6:
|
||||
blt @08002E64
|
||||
@08002EB6:
|
||||
add sp, 0x8
|
||||
pop {r3-r5}
|
||||
mov r8, r3
|
||||
@ -403,8 +403,8 @@ _08002EB6:
|
||||
thumb_func_end PixelBlock_FillRect4Bpp
|
||||
|
||||
thumb_func_start PixelBlock_CopyRect4BppTo8Bpp
|
||||
@ void PixelBlock_CopyRect4BppTo8Bpp(struct PixelBlock *src_pixels_data, struct PixelBlock *dest_pixels_data, u16 src_x, u16 src_y, u16 dest_x, u16 dest_y, u16 dest_w, u16 dest_h, int a9, int a10)
|
||||
PixelBlock_CopyRect4BppTo8Bpp: @ 8002EC8
|
||||
; void PixelBlock_CopyRect4BppTo8Bpp(struct PixelBlock *src_pixels_data, struct PixelBlock *dest_pixels_data, u16 src_x, u16 src_y, u16 dest_x, u16 dest_y, u16 dest_w, u16 dest_h, int a9, int a10)
|
||||
PixelBlock_CopyRect4BppTo8Bpp: ; 8002EC8
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -452,24 +452,24 @@ PixelBlock_CopyRect4BppTo8Bpp: @ 8002EC8
|
||||
adds r1, r5, r1
|
||||
str r1, [sp, 0x18]
|
||||
cmp r0, r5
|
||||
bge _08002F2E
|
||||
bge @08002F2E
|
||||
ldr r2, [sp, 0x8]
|
||||
adds r0, r2
|
||||
str r0, [sp, 0x18]
|
||||
_08002F2E:
|
||||
@08002F2E:
|
||||
ldr r5, [sp, 0x4]
|
||||
ldrh r1, [r5, 0x6]
|
||||
subs r0, r1, r7
|
||||
cmp r0, r4
|
||||
bge _08002F40
|
||||
bge @08002F40
|
||||
adds r0, r3, r1
|
||||
subs r0, r7
|
||||
str r0, [sp, 0x1C]
|
||||
b _08002F44
|
||||
_08002F40:
|
||||
b @08002F44
|
||||
@08002F40:
|
||||
adds r4, r3, r4
|
||||
str r4, [sp, 0x1C]
|
||||
_08002F44:
|
||||
@08002F44:
|
||||
ldr r0, [sp]
|
||||
ldrh r1, [r0, 0x4]
|
||||
movs r2, 0x7
|
||||
@ -487,14 +487,14 @@ _08002F44:
|
||||
str r1, [sp, 0x24]
|
||||
ldr r0, [sp, 0x10]
|
||||
cmp r0, 0xFF
|
||||
bne _08003024
|
||||
bne @08003024
|
||||
adds r2, r3, 0
|
||||
adds r5, r7, 0
|
||||
ldr r1, [sp, 0x1C]
|
||||
cmp r2, r1
|
||||
blt _08002F74
|
||||
b _08003106
|
||||
_08002F74:
|
||||
blt @08002F74
|
||||
b @08003106
|
||||
@08002F74:
|
||||
ldr r3, [sp, 0x8]
|
||||
lsrs r3, 1
|
||||
str r3, [sp, 0x2C]
|
||||
@ -505,7 +505,7 @@ _08002F74:
|
||||
lsrs r0, r7, 3
|
||||
lsls r0, 5
|
||||
str r0, [sp, 0x30]
|
||||
_08002F88:
|
||||
@08002F88:
|
||||
ldr r0, [sp]
|
||||
ldr r1, [r0]
|
||||
ldr r3, [sp, 0x2C]
|
||||
@ -529,7 +529,7 @@ _08002F88:
|
||||
str r0, [sp, 0x38]
|
||||
ldr r1, [sp, 0x18]
|
||||
cmp r3, r1
|
||||
bge _08003018
|
||||
bge @08003018
|
||||
asrs r0, r5, 3
|
||||
ldr r2, [sp, 0x24]
|
||||
muls r0, r2
|
||||
@ -538,7 +538,7 @@ _08002F88:
|
||||
lsls r0, r5, 29
|
||||
lsrs r0, 26
|
||||
mov r9, r0
|
||||
_08002FC8:
|
||||
@08002FC8:
|
||||
movs r0, 0x7
|
||||
ands r0, r4
|
||||
ldr r5, [sp, 0x4]
|
||||
@ -553,11 +553,11 @@ _08002FC8:
|
||||
movs r0, 0x1
|
||||
ands r0, r3
|
||||
cmp r0, 0
|
||||
beq _08002FEC
|
||||
beq @08002FEC
|
||||
ldrb r0, [r6]
|
||||
lsrs r0, 4
|
||||
b _08003008
|
||||
_08002FEC:
|
||||
b @08003008
|
||||
@08002FEC:
|
||||
asrs r2, r3, 1
|
||||
movs r0, 0x3
|
||||
ands r2, r0
|
||||
@ -572,7 +572,7 @@ _08002FEC:
|
||||
ldrb r1, [r6]
|
||||
movs r0, 0xF
|
||||
ands r0, r1
|
||||
_08003008:
|
||||
@08003008:
|
||||
ldr r1, [sp, 0x14]
|
||||
adds r0, r1, r0
|
||||
strb r0, [r5]
|
||||
@ -580,20 +580,20 @@ _08003008:
|
||||
adds r4, 0x1
|
||||
ldr r2, [sp, 0x18]
|
||||
cmp r3, r2
|
||||
blt _08002FC8
|
||||
_08003018:
|
||||
blt @08002FC8
|
||||
@08003018:
|
||||
mov r2, r10
|
||||
ldr r5, [sp, 0x38]
|
||||
ldr r3, [sp, 0x1C]
|
||||
cmp r2, r3
|
||||
blt _08002F88
|
||||
b _08003106
|
||||
_08003024:
|
||||
blt @08002F88
|
||||
b @08003106
|
||||
@08003024:
|
||||
adds r2, r3, 0
|
||||
adds r5, r7, 0
|
||||
ldr r7, [sp, 0x1C]
|
||||
cmp r2, r7
|
||||
bge _08003106
|
||||
bge @08003106
|
||||
ldr r0, [sp, 0x8]
|
||||
lsrs r0, 1
|
||||
str r0, [sp, 0x34]
|
||||
@ -601,7 +601,7 @@ _08003024:
|
||||
ldr r1, [sp, 0x34]
|
||||
ands r1, r0
|
||||
str r1, [sp, 0x34]
|
||||
_0800303C:
|
||||
@0800303C:
|
||||
ldr r3, [sp]
|
||||
ldr r1, [r3]
|
||||
ldr r7, [sp, 0x34]
|
||||
@ -626,7 +626,7 @@ _0800303C:
|
||||
str r0, [sp, 0x38]
|
||||
ldr r1, [sp, 0x18]
|
||||
cmp r3, r1
|
||||
bge _080030FC
|
||||
bge @080030FC
|
||||
asrs r0, r5, 3
|
||||
ldr r2, [sp, 0x24]
|
||||
muls r0, r2
|
||||
@ -635,17 +635,17 @@ _0800303C:
|
||||
lsls r0, r5, 29
|
||||
lsrs r0, 26
|
||||
mov r12, r0
|
||||
_0800307E:
|
||||
@0800307E:
|
||||
movs r0, 0x1
|
||||
ands r0, r3
|
||||
cmp r0, 0
|
||||
beq _080030B2
|
||||
beq @080030B2
|
||||
ldrb r2, [r6]
|
||||
movs r0, 0xF0
|
||||
ands r0, r2
|
||||
ldr r5, [sp, 0x28]
|
||||
cmp r0, r5
|
||||
beq _080030F2
|
||||
beq @080030F2
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x7
|
||||
ands r0, r1
|
||||
@ -661,8 +661,8 @@ _0800307E:
|
||||
lsrs r0, r2, 4
|
||||
ldr r1, [sp, 0x14]
|
||||
adds r0, r1, r0
|
||||
b _080030F0
|
||||
_080030B2:
|
||||
b @080030F0
|
||||
@080030B2:
|
||||
asrs r2, r3, 1
|
||||
movs r0, 0x3
|
||||
ands r2, r0
|
||||
@ -679,7 +679,7 @@ _080030B2:
|
||||
ands r2, r0
|
||||
ldr r0, [sp, 0x10]
|
||||
cmp r2, r0
|
||||
beq _080030F2
|
||||
beq @080030F2
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x7
|
||||
ands r0, r1
|
||||
@ -694,21 +694,21 @@ _080030B2:
|
||||
adds r5, r1, r0
|
||||
ldr r1, [sp, 0x14]
|
||||
adds r0, r1, r2
|
||||
_080030F0:
|
||||
@080030F0:
|
||||
strb r0, [r5]
|
||||
_080030F2:
|
||||
@080030F2:
|
||||
adds r3, 0x1
|
||||
adds r4, 0x1
|
||||
ldr r2, [sp, 0x18]
|
||||
cmp r3, r2
|
||||
blt _0800307E
|
||||
_080030FC:
|
||||
blt @0800307E
|
||||
@080030FC:
|
||||
mov r2, r10
|
||||
ldr r5, [sp, 0x38]
|
||||
ldr r3, [sp, 0x1C]
|
||||
cmp r2, r3
|
||||
blt _0800303C
|
||||
_08003106:
|
||||
blt @0800303C
|
||||
@08003106:
|
||||
add sp, 0x3C
|
||||
pop {r3-r5}
|
||||
mov r8, r3
|
||||
@ -720,8 +720,8 @@ _08003106:
|
||||
thumb_func_end PixelBlock_CopyRect4BppTo8Bpp
|
||||
|
||||
thumb_func_start PixelBlock_FillRect8Bpp
|
||||
@ void PixelBlock_FillRect8Bpp(struct PixelBlock *pixels_data, u16 x, u16 y, u16 w, u16 h, char fill_value)
|
||||
PixelBlock_FillRect8Bpp: @ 8003118
|
||||
; void PixelBlock_FillRect8Bpp(struct PixelBlock *pixels_data, u16 x, u16 y, u16 w, u16 h, char fill_value)
|
||||
PixelBlock_FillRect8Bpp: ; 8003118
|
||||
push {r4-r7,lr}
|
||||
mov r7, r10
|
||||
mov r6, r9
|
||||
@ -748,16 +748,16 @@ PixelBlock_FillRect8Bpp: @ 8003118
|
||||
mov r3, r8
|
||||
ldrh r1, [r3, 0x4]
|
||||
cmp r5, r1
|
||||
ble _08003150
|
||||
ble @08003150
|
||||
adds r5, r1, 0
|
||||
_08003150:
|
||||
@08003150:
|
||||
adds r7, r2, r0
|
||||
mov r2, r8
|
||||
ldrh r0, [r2, 0x6]
|
||||
cmp r7, r0
|
||||
ble _0800315C
|
||||
ble @0800315C
|
||||
adds r7, r0, 0
|
||||
_0800315C:
|
||||
@0800315C:
|
||||
movs r0, 0x7
|
||||
ands r0, r1
|
||||
adds r0, r1, r0
|
||||
@ -765,13 +765,13 @@ _0800315C:
|
||||
str r0, [sp]
|
||||
adds r1, r6, 0
|
||||
cmp r1, r7
|
||||
bge _080031AC
|
||||
_0800316C:
|
||||
bge @080031AC
|
||||
@0800316C:
|
||||
mov r3, r10
|
||||
adds r6, r1, 0x1
|
||||
str r6, [sp, 0x4]
|
||||
cmp r3, r5
|
||||
bge _080031A6
|
||||
bge @080031A6
|
||||
movs r0, 0x7
|
||||
mov r12, r0
|
||||
asrs r0, r1, 3
|
||||
@ -780,7 +780,7 @@ _0800316C:
|
||||
lsls r4, r0, 6
|
||||
lsls r0, r1, 29
|
||||
lsrs r2, r0, 26
|
||||
_08003186:
|
||||
@08003186:
|
||||
adds r0, r3, 0
|
||||
mov r6, r12
|
||||
ands r0, r6
|
||||
@ -796,12 +796,12 @@ _08003186:
|
||||
strb r0, [r1]
|
||||
adds r3, 0x1
|
||||
cmp r3, r5
|
||||
blt _08003186
|
||||
_080031A6:
|
||||
blt @08003186
|
||||
@080031A6:
|
||||
ldr r1, [sp, 0x4]
|
||||
cmp r1, r7
|
||||
blt _0800316C
|
||||
_080031AC:
|
||||
blt @0800316C
|
||||
@080031AC:
|
||||
add sp, 0x8
|
||||
pop {r3-r5}
|
||||
mov r8, r3
|
||||
|
174
asm/task.s
174
asm/task.s
@ -1,12 +1,12 @@
|
||||
thumb_func_start clear_tasks
|
||||
@ void clear_tasks()
|
||||
clear_tasks: @ 80A8F50
|
||||
; void clear_tasks()
|
||||
clear_tasks: ; 80A8F50
|
||||
push {r4-r7,lr}
|
||||
movs r4, 0
|
||||
ldr r6, =0x03005e00
|
||||
adds r7, r6, 0
|
||||
adds r7, 0x8
|
||||
_080A8F5A:
|
||||
@080A8F5A:
|
||||
lsls r0, r4, 2
|
||||
adds r0, r4
|
||||
lsls r0, 3
|
||||
@ -30,7 +30,7 @@ _080A8F5A:
|
||||
lsls r4, 24
|
||||
lsrs r4, 24
|
||||
cmp r4, 0xF
|
||||
bls _080A8F5A
|
||||
bls @080A8F5A
|
||||
ldr r0, =0x03005e00
|
||||
movs r1, 0xFE
|
||||
strb r1, [r0, 0x5]
|
||||
@ -47,22 +47,22 @@ _080A8F5A:
|
||||
thumb_func_end clear_tasks
|
||||
|
||||
thumb_func_start AddTask
|
||||
@ int AddTask(void ( *func)(int task_id), u8 priority)
|
||||
AddTask: @ 80A8FB0
|
||||
; int AddTask(void ( *func)(int task_id), u8 priority)
|
||||
AddTask: ; 80A8FB0
|
||||
push {r4-r7,lr}
|
||||
adds r2, r0, 0
|
||||
lsls r1, 24
|
||||
lsrs r1, 24
|
||||
movs r6, 0
|
||||
ldr r7, =0x03005e00
|
||||
_080A8FBC:
|
||||
@080A8FBC:
|
||||
lsls r0, r6, 2
|
||||
adds r0, r6
|
||||
lsls r5, r0, 3
|
||||
adds r4, r5, r7
|
||||
ldrb r0, [r4, 0x4]
|
||||
cmp r0, 0
|
||||
bne _080A8FF0
|
||||
bne @080A8FF0
|
||||
str r2, [r4]
|
||||
strb r1, [r4, 0x7]
|
||||
adds r0, r6, 0
|
||||
@ -76,25 +76,25 @@ _080A8FBC:
|
||||
movs r0, 0x1
|
||||
strb r0, [r4, 0x4]
|
||||
adds r0, r6, 0
|
||||
b _080A8FFC
|
||||
b @080A8FFC
|
||||
.align 2, 0
|
||||
.pool
|
||||
_080A8FF0:
|
||||
@080A8FF0:
|
||||
adds r0, r6, 0x1
|
||||
lsls r0, 24
|
||||
lsrs r6, r0, 24
|
||||
cmp r6, 0xF
|
||||
bls _080A8FBC
|
||||
bls @080A8FBC
|
||||
movs r0, 0
|
||||
_080A8FFC:
|
||||
@080A8FFC:
|
||||
pop {r4-r7}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end AddTask
|
||||
|
||||
thumb_func_start insert_task_in_order_by_priority
|
||||
@ void insert_task_in_order_by_priority(int task_id)
|
||||
insert_task_in_order_by_priority: @ 80A9004
|
||||
; void insert_task_in_order_by_priority(int task_id)
|
||||
insert_task_in_order_by_priority: ; 80A9004
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
@ -104,7 +104,7 @@ insert_task_in_order_by_priority: @ 80A9004
|
||||
lsls r0, 24
|
||||
lsrs r1, r0, 24
|
||||
cmp r1, 0x10
|
||||
bne _080A9034
|
||||
bne @080A9034
|
||||
ldr r1, =0x03005e00
|
||||
lsls r0, r4, 2
|
||||
adds r0, r4
|
||||
@ -114,10 +114,10 @@ insert_task_in_order_by_priority: @ 80A9004
|
||||
strb r1, [r0, 0x5]
|
||||
movs r1, 0xFF
|
||||
strb r1, [r0, 0x6]
|
||||
b _080A9090
|
||||
b @080A9090
|
||||
.align 2, 0
|
||||
.pool
|
||||
_080A9034:
|
||||
@080A9034:
|
||||
ldr r6, =0x03005e00
|
||||
lsls r0, r4, 2
|
||||
mov r12, r0
|
||||
@ -125,7 +125,7 @@ _080A9034:
|
||||
adds r0, r4
|
||||
lsls r0, 3
|
||||
adds r2, r0, r6
|
||||
_080A9042:
|
||||
@080A9042:
|
||||
lsls r0, r1, 2
|
||||
adds r0, r1
|
||||
lsls r5, r0, 3
|
||||
@ -134,31 +134,31 @@ _080A9042:
|
||||
ldrb r0, [r2, 0x7]
|
||||
ldrb r7, [r3, 0x7]
|
||||
cmp r0, r7
|
||||
bcs _080A9074
|
||||
bcs @080A9074
|
||||
ldrb r0, [r3, 0x5]
|
||||
strb r0, [r2, 0x5]
|
||||
strb r1, [r2, 0x6]
|
||||
ldrb r0, [r3, 0x5]
|
||||
cmp r0, 0xFE
|
||||
beq _080A906C
|
||||
beq @080A906C
|
||||
adds r1, r0, 0
|
||||
lsls r0, r1, 2
|
||||
adds r0, r1
|
||||
lsls r0, 3
|
||||
add r0, r8
|
||||
strb r4, [r0, 0x6]
|
||||
_080A906C:
|
||||
@080A906C:
|
||||
strb r4, [r3, 0x5]
|
||||
b _080A9090
|
||||
b @080A9090
|
||||
.align 2, 0
|
||||
.pool
|
||||
_080A9074:
|
||||
@080A9074:
|
||||
ldrb r0, [r3, 0x6]
|
||||
cmp r0, 0xFF
|
||||
beq _080A907E
|
||||
beq @080A907E
|
||||
adds r1, r0, 0
|
||||
b _080A9042
|
||||
_080A907E:
|
||||
b @080A9042
|
||||
@080A907E:
|
||||
mov r2, r12
|
||||
adds r0, r2, r4
|
||||
lsls r0, 3
|
||||
@ -168,7 +168,7 @@ _080A907E:
|
||||
ldrb r1, [r2, 0x6]
|
||||
strb r1, [r0, 0x6]
|
||||
strb r4, [r2, 0x6]
|
||||
_080A9090:
|
||||
@080A9090:
|
||||
pop {r3}
|
||||
mov r8, r3
|
||||
pop {r4-r7}
|
||||
@ -177,8 +177,8 @@ _080A9090:
|
||||
thumb_func_end insert_task_in_order_by_priority
|
||||
|
||||
thumb_func_start remove_task
|
||||
@ void remove_task(int task_id)
|
||||
remove_task: @ 80A909C
|
||||
; void remove_task(int task_id)
|
||||
remove_task: ; 80A909C
|
||||
push {r4,lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
@ -189,29 +189,29 @@ remove_task: @ 80A909C
|
||||
adds r2, r1, r4
|
||||
ldrb r0, [r2, 0x4]
|
||||
cmp r0, 0
|
||||
beq _080A9106
|
||||
beq @080A9106
|
||||
movs r0, 0
|
||||
strb r0, [r2, 0x4]
|
||||
ldrb r3, [r2, 0x5]
|
||||
cmp r3, 0xFE
|
||||
bne _080A90D4
|
||||
bne @080A90D4
|
||||
ldrb r0, [r2, 0x6]
|
||||
cmp r0, 0xFF
|
||||
beq _080A9106
|
||||
beq @080A9106
|
||||
adds r1, r0, 0
|
||||
lsls r0, r1, 2
|
||||
adds r0, r1
|
||||
lsls r0, 3
|
||||
adds r0, r4
|
||||
strb r3, [r0, 0x5]
|
||||
b _080A9106
|
||||
b @080A9106
|
||||
.align 2, 0
|
||||
.pool
|
||||
_080A90D4:
|
||||
@080A90D4:
|
||||
ldrb r3, [r2, 0x6]
|
||||
adds r0, r3, 0
|
||||
cmp r0, 0xFF
|
||||
bne _080A90EC
|
||||
bne @080A90EC
|
||||
ldrb r0, [r2, 0x5]
|
||||
lsls r1, r0, 2
|
||||
adds r1, r0
|
||||
@ -219,8 +219,8 @@ _080A90D4:
|
||||
adds r1, r4
|
||||
movs r0, 0xFF
|
||||
strb r0, [r1, 0x6]
|
||||
b _080A9106
|
||||
_080A90EC:
|
||||
b @080A9106
|
||||
@080A90EC:
|
||||
ldrb r1, [r2, 0x5]
|
||||
lsls r0, r1, 2
|
||||
adds r0, r1
|
||||
@ -234,23 +234,23 @@ _080A90EC:
|
||||
adds r0, r4
|
||||
ldrb r1, [r2, 0x5]
|
||||
strb r1, [r0, 0x5]
|
||||
_080A9106:
|
||||
@080A9106:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end remove_task
|
||||
|
||||
thumb_func_start run_active_tasks
|
||||
@ void run_active_tasks()
|
||||
run_active_tasks: @ 80A910C
|
||||
; void run_active_tasks()
|
||||
run_active_tasks: ; 80A910C
|
||||
push {r4,r5,lr}
|
||||
bl get_first_active_task
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
cmp r0, 0x10
|
||||
beq _080A9130
|
||||
beq @080A9130
|
||||
ldr r5, =0x03005e00
|
||||
_080A911C:
|
||||
@080A911C:
|
||||
lsls r4, r0, 2
|
||||
adds r4, r0
|
||||
lsls r4, 3
|
||||
@ -259,8 +259,8 @@ _080A911C:
|
||||
bl _call_via_r1
|
||||
ldrb r0, [r4, 0x6]
|
||||
cmp r0, 0xFF
|
||||
bne _080A911C
|
||||
_080A9130:
|
||||
bne @080A911C
|
||||
@080A9130:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
@ -269,35 +269,35 @@ _080A9130:
|
||||
thumb_func_end run_active_tasks
|
||||
|
||||
thumb_func_start get_first_active_task
|
||||
@ int get_first_active_task()
|
||||
get_first_active_task: @ 80A913C
|
||||
; int get_first_active_task()
|
||||
get_first_active_task: ; 80A913C
|
||||
push {lr}
|
||||
movs r2, 0
|
||||
ldr r0, =0x03005e00
|
||||
ldrb r1, [r0, 0x4]
|
||||
adds r3, r0, 0
|
||||
cmp r1, 0x1
|
||||
bne _080A9150
|
||||
bne @080A9150
|
||||
ldrb r0, [r3, 0x5]
|
||||
cmp r0, 0xFE
|
||||
beq _080A916E
|
||||
_080A9150:
|
||||
beq @080A916E
|
||||
@080A9150:
|
||||
adds r0, r2, 0x1
|
||||
lsls r0, 24
|
||||
lsrs r2, r0, 24
|
||||
cmp r2, 0xF
|
||||
bhi _080A916E
|
||||
bhi @080A916E
|
||||
lsls r0, r2, 2
|
||||
adds r0, r2
|
||||
lsls r0, 3
|
||||
adds r1, r0, r3
|
||||
ldrb r0, [r1, 0x4]
|
||||
cmp r0, 0x1
|
||||
bne _080A9150
|
||||
bne @080A9150
|
||||
ldrb r0, [r1, 0x5]
|
||||
cmp r0, 0xFE
|
||||
bne _080A9150
|
||||
_080A916E:
|
||||
bne @080A9150
|
||||
@080A916E:
|
||||
adds r0, r2, 0
|
||||
pop {r1}
|
||||
bx r1
|
||||
@ -306,12 +306,12 @@ _080A916E:
|
||||
thumb_func_end get_first_active_task
|
||||
|
||||
thumb_func_start nullsub_4
|
||||
nullsub_4: @ 80A9178
|
||||
nullsub_4: ; 80A9178
|
||||
bx lr
|
||||
thumb_func_end nullsub_4
|
||||
|
||||
thumb_func_start set_task_function_and_args_14_15
|
||||
set_task_function_and_args_14_15: @ 80A917C
|
||||
set_task_function_and_args_14_15: ; 80A917C
|
||||
push {r4,r5,lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
@ -340,7 +340,7 @@ set_task_function_and_args_14_15: @ 80A917C
|
||||
thumb_func_end set_task_function_and_args_14_15
|
||||
|
||||
thumb_func_start set_task_function_to_args_14_15
|
||||
set_task_function_to_args_14_15: @ 80A91B0
|
||||
set_task_function_to_args_14_15: ; 80A91B0
|
||||
push {r4,lr}
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
@ -369,93 +369,93 @@ set_task_function_to_args_14_15: @ 80A91B0
|
||||
thumb_func_end set_task_function_to_args_14_15
|
||||
|
||||
thumb_func_start is_function_an_active_task
|
||||
@ int is_function_an_active_task(void ( *func)(int task_id))
|
||||
is_function_an_active_task: @ 80A91E4
|
||||
; int is_function_an_active_task(void ( *func)(int task_id))
|
||||
is_function_an_active_task: ; 80A91E4
|
||||
push {r4,lr}
|
||||
adds r3, r0, 0
|
||||
movs r2, 0
|
||||
ldr r4, =0x03005e00
|
||||
_080A91EC:
|
||||
@080A91EC:
|
||||
lsls r0, r2, 2
|
||||
adds r0, r2
|
||||
lsls r0, 3
|
||||
adds r1, r0, r4
|
||||
ldrb r0, [r1, 0x4]
|
||||
cmp r0, 0x1
|
||||
bne _080A9208
|
||||
bne @080A9208
|
||||
ldr r0, [r1]
|
||||
cmp r0, r3
|
||||
bne _080A9208
|
||||
bne @080A9208
|
||||
movs r0, 0x1
|
||||
b _080A9214
|
||||
b @080A9214
|
||||
.align 2, 0
|
||||
.pool
|
||||
_080A9208:
|
||||
@080A9208:
|
||||
adds r0, r2, 0x1
|
||||
lsls r0, 24
|
||||
lsrs r2, r0, 24
|
||||
cmp r2, 0xF
|
||||
bls _080A91EC
|
||||
bls @080A91EC
|
||||
movs r0, 0
|
||||
_080A9214:
|
||||
@080A9214:
|
||||
pop {r4}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end is_function_an_active_task
|
||||
|
||||
thumb_func_start get_task_id_by_function
|
||||
@ int get_task_id_by_function(void ( *func)(int task_id))
|
||||
get_task_id_by_function: @ 80A921C
|
||||
; int get_task_id_by_function(void ( *func)(int task_id))
|
||||
get_task_id_by_function: ; 80A921C
|
||||
push {lr}
|
||||
adds r3, r0, 0
|
||||
movs r2, 0
|
||||
ldr r1, =0x03005e00
|
||||
_080A9224:
|
||||
@080A9224:
|
||||
ldrb r0, [r1, 0x4]
|
||||
cmp r0, 0x1
|
||||
bne _080A923C
|
||||
bne @080A923C
|
||||
ldr r0, [r1]
|
||||
cmp r0, r3
|
||||
bne _080A923C
|
||||
bne @080A923C
|
||||
lsls r0, r2, 24
|
||||
lsrs r0, 24
|
||||
b _080A9246
|
||||
b @080A9246
|
||||
.align 2, 0
|
||||
.pool
|
||||
_080A923C:
|
||||
@080A923C:
|
||||
adds r1, 0x28
|
||||
adds r2, 0x1
|
||||
cmp r2, 0xF
|
||||
ble _080A9224
|
||||
ble @080A9224
|
||||
movs r0, 0xFF
|
||||
_080A9246:
|
||||
@080A9246:
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end get_task_id_by_function
|
||||
|
||||
thumb_func_start sub_80A924C
|
||||
sub_80A924C: @ 80A924C
|
||||
sub_80A924C: ; 80A924C
|
||||
push {lr}
|
||||
movs r2, 0
|
||||
movs r1, 0
|
||||
ldr r3, =0x03005e00
|
||||
_080A9254:
|
||||
@080A9254:
|
||||
lsls r0, r1, 2
|
||||
adds r0, r1
|
||||
lsls r0, 3
|
||||
adds r0, r3
|
||||
ldrb r0, [r0, 0x4]
|
||||
cmp r0, 0x1
|
||||
bne _080A9268
|
||||
bne @080A9268
|
||||
adds r0, r2, 0x1
|
||||
lsls r0, 24
|
||||
lsrs r2, r0, 24
|
||||
_080A9268:
|
||||
@080A9268:
|
||||
adds r0, r1, 0x1
|
||||
lsls r0, 24
|
||||
lsrs r1, r0, 24
|
||||
cmp r1, 0xF
|
||||
bls _080A9254
|
||||
bls @080A9254
|
||||
adds r0, r2, 0
|
||||
pop {r1}
|
||||
bx r1
|
||||
@ -464,7 +464,7 @@ _080A9268:
|
||||
thumb_func_end sub_80A924C
|
||||
|
||||
thumb_func_start set_word_task_arg
|
||||
set_word_task_arg: @ 80A927C
|
||||
set_word_task_arg: ; 80A927C
|
||||
push {r4,r5,lr}
|
||||
adds r5, r2, 0
|
||||
lsls r0, 24
|
||||
@ -472,7 +472,7 @@ set_word_task_arg: @ 80A927C
|
||||
lsls r1, 24
|
||||
lsrs r3, r1, 24
|
||||
cmp r3, 0xE
|
||||
bhi _080A92AA
|
||||
bhi @080A92AA
|
||||
ldr r2, =0x03005e00
|
||||
lsls r0, r3, 1
|
||||
lsls r1, r4, 2
|
||||
@ -488,7 +488,7 @@ set_word_task_arg: @ 80A927C
|
||||
adds r0, r2
|
||||
lsrs r1, r5, 16
|
||||
strh r1, [r0]
|
||||
_080A92AA:
|
||||
@080A92AA:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
@ -497,17 +497,17 @@ _080A92AA:
|
||||
thumb_func_end set_word_task_arg
|
||||
|
||||
thumb_func_start get_word_task_arg
|
||||
get_word_task_arg: @ 80A92B4
|
||||
get_word_task_arg: ; 80A92B4
|
||||
push {r4,lr}
|
||||
lsls r0, 24
|
||||
lsrs r4, r0, 24
|
||||
lsls r1, 24
|
||||
lsrs r1, 24
|
||||
cmp r1, 0xE
|
||||
bls _080A92C6
|
||||
bls @080A92C6
|
||||
movs r0, 0
|
||||
b _080A92E8
|
||||
_080A92C6:
|
||||
b @080A92E8
|
||||
@080A92C6:
|
||||
ldr r3, =0x03005e00
|
||||
lsls r0, r1, 1
|
||||
lsls r2, r4, 2
|
||||
@ -525,7 +525,7 @@ _080A92C6:
|
||||
ldrsh r1, [r1, r2]
|
||||
lsls r1, 16
|
||||
orrs r0, r1
|
||||
_080A92E8:
|
||||
@080A92E8:
|
||||
pop {r4}
|
||||
pop {r1}
|
||||
bx r1
|
||||
|
1730
asm/text_renderer.s
1730
asm/text_renderer.s
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
thumb_func_start sub_82DED70
|
||||
sub_82DED70: @ 82DED70
|
||||
sub_82DED70: ; 82DED70
|
||||
push {r4,lr}
|
||||
ldr r4, _082DEE78
|
||||
eors r3, r1
|
||||
@ -15,7 +15,7 @@ _082DED7E:
|
||||
thumb_func_end sub_82DED70
|
||||
|
||||
thumb_func_start sub_82DED84
|
||||
sub_82DED84: @ 82DED84
|
||||
sub_82DED84: ; 82DED84
|
||||
ldr r1, [r0, 0x28]
|
||||
cmp r1, 0
|
||||
beq _082DEDAA
|
||||
@ -155,7 +155,7 @@ _082DEE80: .4byte RomHeaderNintendoLogo
|
||||
thumb_func_end sub_82DED84
|
||||
|
||||
thumb_func_start sub_82DEE84
|
||||
sub_82DEE84: @ 82DEE84
|
||||
sub_82DEE84: ; 82DEE84
|
||||
ldrb r1, [r0, 0x2]
|
||||
cmp r1, 0x2
|
||||
bne _082DEE96
|
||||
@ -170,7 +170,7 @@ _082DEE96:
|
||||
thumb_func_end sub_82DEE84
|
||||
|
||||
thumb_func_start sub_82DEE98
|
||||
sub_82DEE98: @ 82DEE98
|
||||
sub_82DEE98: ; 82DEE98
|
||||
ldr r3, _082DF038
|
||||
ldrh r2, [r3, 0x8]
|
||||
movs r1, 0
|
||||
@ -212,7 +212,7 @@ _082DEEB0:
|
||||
thumb_func_end sub_82DEE98
|
||||
|
||||
non_word_aligned_thumb_func_start sub_82DEEE2
|
||||
sub_82DEEE2: @ 82DEEE2
|
||||
sub_82DEEE2: ; 82DEEE2
|
||||
ldr r3, _082DF03C
|
||||
ldrh r1, [r3, 0x20]
|
||||
strh r1, [r3, 0x20]
|
||||
@ -249,23 +249,23 @@ _082DEF06:
|
||||
ldr r1, _082DF048
|
||||
str r1, [r0, 0x20]
|
||||
str r1, [r0, 0x24]
|
||||
adr r2, .Lsub_82DEF24
|
||||
adr r2, .L082DEF24
|
||||
b _082DEEFC
|
||||
thumb_func_end sub_82DEEE2
|
||||
|
||||
thumb_func_start sub_82DEF24
|
||||
.Lsub_82DEF24:
|
||||
sub_82DEF24: @ 82DEF24
|
||||
.L082DEF24:
|
||||
sub_82DEF24: ; 82DEF24
|
||||
lsls r1, 31
|
||||
bcc _082DEEF8
|
||||
bmi _082DEF34
|
||||
adr r2, .Lsub_82DEF30
|
||||
adr r2, .L082DEF30
|
||||
b _082DEEFC
|
||||
thumb_func_end sub_82DEF24
|
||||
|
||||
thumb_func_start sub_82DEF30
|
||||
.Lsub_82DEF30:
|
||||
sub_82DEF30: @ 82DEF30
|
||||
.L082DEF30:
|
||||
sub_82DEF30: ; 82DEF30
|
||||
lsrs r1, 1
|
||||
bcc _082DEEF8
|
||||
_082DEF34:
|
||||
@ -275,13 +275,13 @@ _082DEF34:
|
||||
bne _082DEEF8
|
||||
ldrb r1, [r0, 0x3]
|
||||
strb r1, [r0, 0xB]
|
||||
adr r2, .Lsub_82DEF44
|
||||
adr r2, .L082DEF44
|
||||
b _082DEEFC
|
||||
thumb_func_end sub_82DEF30
|
||||
|
||||
thumb_func_start sub_82DEF44
|
||||
.Lsub_82DEF44:
|
||||
sub_82DEF44: @ 82DEF44
|
||||
.L082DEF44:
|
||||
sub_82DEF44: ; 82DEF44
|
||||
lsrs r1, 1
|
||||
bcc _082DEEF8
|
||||
ldr r1, [r3, 0x30]
|
||||
@ -314,23 +314,23 @@ _082DEF72:
|
||||
str r1, [r3, 0x34]
|
||||
movs r1, 0x30
|
||||
strh r1, [r3, 0x38]
|
||||
adr r2, .Lsub_82DEF84
|
||||
adr r2, .L082DEF84
|
||||
b _082DEEFC
|
||||
thumb_func_end sub_82DEF44
|
||||
|
||||
thumb_func_start sub_82DEF84
|
||||
.Lsub_82DEF84:
|
||||
sub_82DEF84: @ 82DEF84
|
||||
.L082DEF84:
|
||||
sub_82DEF84: ; 82DEF84
|
||||
lsls r1, 31
|
||||
bcc _082DEEF8
|
||||
bmi _082DEF94
|
||||
adr r2, .Lsub_82DEF90
|
||||
adr r2, .L082DEF90
|
||||
b _082DEEFC
|
||||
thumb_func_end sub_82DEF84
|
||||
|
||||
thumb_func_start sub_82DEF90
|
||||
.Lsub_82DEF90:
|
||||
sub_82DEF90: @ 82DEF90
|
||||
.L082DEF90:
|
||||
sub_82DEF90: ; 82DEF90
|
||||
lsrs r1, 1
|
||||
bcc _082DEEF8
|
||||
_082DEF94:
|
||||
@ -348,13 +348,13 @@ _082DEFA6:
|
||||
ldr r1, _082DF048
|
||||
str r1, [r0, 0x20]
|
||||
str r1, [r0, 0x24]
|
||||
adr r2, .Lsub_82DEFB4
|
||||
adr r2, .L082DEFB4
|
||||
b _082DEEFC
|
||||
thumb_func_end sub_82DEF90
|
||||
|
||||
thumb_func_start sub_82DEFB4
|
||||
.Lsub_82DEFB4:
|
||||
sub_82DEFB4: @ 82DEFB4
|
||||
.L082DEFB4:
|
||||
sub_82DEFB4: ; 82DEFB4
|
||||
lsrs r1, 1
|
||||
bcc _082DEEF8
|
||||
ldr r2, [r0, 0x24]
|
||||
@ -386,20 +386,20 @@ _082DEFE2:
|
||||
cmp r1, 0
|
||||
beq _082DEFD2
|
||||
str r1, [r3, 0x34]
|
||||
adr r2, .Lsub_82DEFF0
|
||||
adr r2, .L082DEFF0
|
||||
b _082DEEFC
|
||||
thumb_func_end sub_82DEFB4
|
||||
|
||||
thumb_func_start sub_82DEFF0
|
||||
.Lsub_82DEFF0:
|
||||
sub_82DEFF0: @ 82DEFF0
|
||||
.L082DEFF0:
|
||||
sub_82DEFF0: ; 82DEFF0
|
||||
lsls r1, 31
|
||||
bcc _082DEFE2
|
||||
bmi _082DF000
|
||||
adr r2, .L_082DEFFC
|
||||
adr r2, .L082DEFFC
|
||||
b _082DEEFC
|
||||
.align 2, 0
|
||||
.L_082DEFFC:
|
||||
.L082DEFFC:
|
||||
_082DEFFC:
|
||||
lsrs r1, 1
|
||||
bcc _082DEFE2
|
||||
@ -409,18 +409,18 @@ _082DF000:
|
||||
cmp r2, 0xBB
|
||||
bne _082DEFA6
|
||||
strh r1, [r0, 0x10]
|
||||
adr r2, .Lsub_82DF010
|
||||
adr r2, .L082DF010
|
||||
b _082DEEFC
|
||||
thumb_func_end sub_82DEFF0
|
||||
|
||||
thumb_func_start sub_82DF010
|
||||
.Lsub_82DF010:
|
||||
sub_82DF010: @ 82DF010
|
||||
.L082DF010:
|
||||
sub_82DF010: ; 82DF010
|
||||
b _082DEEF8
|
||||
thumb_func_end sub_82DF010
|
||||
|
||||
non_word_aligned_thumb_func_start sub_82DF012
|
||||
sub_82DF012: @ 82DF012
|
||||
sub_82DF012: ; 82DF012
|
||||
ldr r3, _082DF038
|
||||
ldrh r2, [r3, 0x8]
|
||||
movs r1, 0
|
||||
|
@ -1,5 +1,5 @@
|
||||
thumb_func_start sub_82E2150
|
||||
sub_82E2150: @ 82E2150
|
||||
sub_82E2150: ; 82E2150
|
||||
push {r7,lr}
|
||||
mov r7, sp
|
||||
bl sub_82E29F0
|
||||
@ -14,7 +14,7 @@ _082E2164: .4byte 0x03001a7e
|
||||
thumb_func_end sub_82E2150
|
||||
|
||||
thumb_func_start sub_82E2168
|
||||
sub_82E2168: @ 82E2168
|
||||
sub_82E2168: ; 82E2168
|
||||
push {r7,lr}
|
||||
mov r7, sp
|
||||
bl sub_82E2A04
|
||||
@ -29,7 +29,7 @@ _082E217C: .4byte 0x03001a7e
|
||||
thumb_func_end sub_82E2168
|
||||
|
||||
thumb_func_start sub_82E2180
|
||||
sub_82E2180: @ 82E2180
|
||||
sub_82E2180: ; 82E2180
|
||||
push {r7,lr}
|
||||
sub sp, 0x10
|
||||
mov r7, sp
|
||||
@ -143,7 +143,7 @@ _082E224E:
|
||||
thumb_func_end sub_82E2180
|
||||
|
||||
thumb_func_start sub_82E2258
|
||||
sub_82E2258: @ 82E2258
|
||||
sub_82E2258: ; 82E2258
|
||||
push {r7,lr}
|
||||
sub sp, 0x10
|
||||
mov r7, sp
|
||||
@ -210,7 +210,7 @@ _082E22D4:
|
||||
thumb_func_end sub_82E2258
|
||||
|
||||
thumb_func_start sub_82E22DC
|
||||
sub_82E22DC: @ 82E22DC
|
||||
sub_82E22DC: ; 82E22DC
|
||||
push {r4,r7,lr}
|
||||
sub sp, 0x8
|
||||
mov r7, sp
|
||||
@ -314,7 +314,7 @@ _082E23A0:
|
||||
thumb_func_end sub_82E22DC
|
||||
|
||||
thumb_func_start sub_82E23A8
|
||||
sub_82E23A8: @ 82E23A8
|
||||
sub_82E23A8: ; 82E23A8
|
||||
push {r4,r7,lr}
|
||||
sub sp, 0x8
|
||||
mov r7, sp
|
||||
@ -399,7 +399,7 @@ _082E2448:
|
||||
thumb_func_end sub_82E23A8
|
||||
|
||||
thumb_func_start sub_82E2450
|
||||
sub_82E2450: @ 82E2450
|
||||
sub_82E2450: ; 82E2450
|
||||
push {r7,lr}
|
||||
sub sp, 0x8
|
||||
mov r7, sp
|
||||
@ -491,7 +491,7 @@ _082E24F8:
|
||||
thumb_func_end sub_82E2450
|
||||
|
||||
thumb_func_start sub_82E2500
|
||||
sub_82E2500: @ 82E2500
|
||||
sub_82E2500: ; 82E2500
|
||||
push {r7,lr}
|
||||
sub sp, 0x8
|
||||
mov r7, sp
|
||||
@ -571,7 +571,7 @@ _082E2594:
|
||||
thumb_func_end sub_82E2500
|
||||
|
||||
thumb_func_start sub_82E259C
|
||||
sub_82E259C: @ 82E259C
|
||||
sub_82E259C: ; 82E259C
|
||||
push {r7,lr}
|
||||
sub sp, 0x8
|
||||
mov r7, sp
|
||||
@ -664,7 +664,7 @@ _082E2648:
|
||||
thumb_func_end sub_82E259C
|
||||
|
||||
thumb_func_start sub_82E2650
|
||||
sub_82E2650: @ 82E2650
|
||||
sub_82E2650: ; 82E2650
|
||||
push {r7,lr}
|
||||
sub sp, 0x8
|
||||
mov r7, sp
|
||||
@ -745,7 +745,7 @@ _082E26E4:
|
||||
thumb_func_end sub_82E2650
|
||||
|
||||
thumb_func_start sub_82E26EC
|
||||
sub_82E26EC: @ 82E26EC
|
||||
sub_82E26EC: ; 82E26EC
|
||||
push {r4,r7,lr}
|
||||
sub sp, 0xC
|
||||
mov r7, sp
|
||||
@ -904,7 +904,7 @@ _082E2818:
|
||||
thumb_func_end sub_82E26EC
|
||||
|
||||
thumb_func_start sub_82E2820
|
||||
sub_82E2820: @ 82E2820
|
||||
sub_82E2820: ; 82E2820
|
||||
push {r4,r5,r7,lr}
|
||||
sub sp, 0x4
|
||||
mov r7, sp
|
||||
@ -993,7 +993,7 @@ _082E28BC:
|
||||
thumb_func_end sub_82E2820
|
||||
|
||||
thumb_func_start sub_82E28C4
|
||||
sub_82E28C4: @ 82E28C4
|
||||
sub_82E28C4: ; 82E28C4
|
||||
push {r4,r7,lr}
|
||||
sub sp, 0x4
|
||||
mov r7, sp
|
||||
@ -1080,7 +1080,7 @@ _082E295C:
|
||||
thumb_func_end sub_82E28C4
|
||||
|
||||
thumb_func_start sub_82E2964
|
||||
sub_82E2964: @ 82E2964
|
||||
sub_82E2964: ; 82E2964
|
||||
push {r7,lr}
|
||||
sub sp, 0x4
|
||||
mov r7, sp
|
||||
@ -1157,7 +1157,7 @@ _082E29E8:
|
||||
thumb_func_end sub_82E2964
|
||||
|
||||
thumb_func_start sub_82E29F0
|
||||
sub_82E29F0: @ 82E29F0
|
||||
sub_82E29F0: ; 82E29F0
|
||||
push {r7,lr}
|
||||
mov r7, sp
|
||||
ldr r0, _082E2A00
|
||||
@ -1171,7 +1171,7 @@ _082E2A00: .4byte _080000C8
|
||||
thumb_func_end sub_82E29F0
|
||||
|
||||
thumb_func_start sub_82E2A04
|
||||
sub_82E2A04: @ 82E2A04
|
||||
sub_82E2A04: ; 82E2A04
|
||||
push {r7,lr}
|
||||
mov r7, sp
|
||||
ldr r0, _082E2A14
|
||||
|
746
asm/window.s
746
asm/window.s
File diff suppressed because it is too large
Load Diff
@ -1,2 +1,2 @@
|
||||
@ the first big chunk of data
|
||||
; the first big chunk of data
|
||||
.incbin "base_emerald.gba", 0x1db67c, 0x2ded70 - 0x1db67c
|
||||
|
86
data/data2.s
86
data/data2.s
@ -1,21 +1,21 @@
|
||||
@ the second big chunk of data
|
||||
; the second big chunk of data
|
||||
|
||||
.align 2, 0
|
||||
|
||||
gUnknown_82E9530: @ 82E9530
|
||||
gUnknown_82E9530: ; 82E9530
|
||||
.byte 3
|
||||
|
||||
gUnknown_82E9531: @ 82E9531
|
||||
gUnknown_82E9531: ; 82E9531
|
||||
.byte 2
|
||||
|
||||
.align 2, 0
|
||||
|
||||
@ compile time
|
||||
; compile time
|
||||
.asciz "2005 02 21 11:10"
|
||||
|
||||
.align 2, 0
|
||||
|
||||
gRomInterruptTable: @ 82E9548
|
||||
gRomInterruptTable: ; 82E9548
|
||||
.4byte irq_vcount+1
|
||||
.4byte irq_serial+1
|
||||
.4byte irq_timer3+1
|
||||
@ -31,13 +31,13 @@ gRomInterruptTable: @ 82E9548
|
||||
.4byte irq_other+1
|
||||
.4byte irq_other+1
|
||||
|
||||
gBgConfigZeroValue: @ 82E9580
|
||||
gBgConfigZeroValue: ; 82E9580
|
||||
.4byte 0
|
||||
|
||||
gDummyWindowTemplate: @ 82E9584
|
||||
gDummyWindowTemplate: ; 82E9584
|
||||
window_template -1, 0, 0, 0, 0, 0, 0
|
||||
|
||||
gFontHalfRowOffsets: @ 82E958C
|
||||
gFontHalfRowOffsets: ; 82E958C
|
||||
.byte 0x00,0x01,0x02,0x00,0x03,0x04,0x05,0x03,0x06,0x07,0x08,0x06,0x00,0x01,0x02,0x00
|
||||
.byte 0x09,0x0a,0x0b,0x09,0x0c,0x0d,0x0e,0x0c,0x0f,0x10,0x11,0x0f,0x09,0x0a,0x0b,0x09
|
||||
.byte 0x12,0x13,0x14,0x12,0x15,0x16,0x17,0x15,0x18,0x19,0x1a,0x18,0x12,0x13,0x14,0x12
|
||||
@ -55,22 +55,22 @@ gFontHalfRowOffsets: @ 82E958C
|
||||
.byte 0x12,0x13,0x14,0x12,0x15,0x16,0x17,0x15,0x18,0x19,0x1a,0x18,0x12,0x13,0x14,0x12
|
||||
.byte 0x00,0x01,0x02,0x00,0x03,0x04,0x05,0x03,0x06,0x07,0x08,0x06,0x00,0x01,0x02,0x00
|
||||
|
||||
gDownArrowTiles: @ 82E968C
|
||||
gDownArrowTiles: ; 82E968C
|
||||
.incbin "base_emerald.gba", 0x2e968c, 0xc0
|
||||
|
||||
gDarkDownArrowTiles: @ 82E974C
|
||||
gDarkDownArrowTiles: ; 82E974C
|
||||
.incbin "base_emerald.gba", 0x2e974c, 0xc0
|
||||
|
||||
@ Seemingly unreferenced data. It contains some kind of arrow graphics.
|
||||
; Seemingly unreferenced data. It contains some kind of arrow graphics.
|
||||
.incbin "base_emerald.gba", 0x2e980c, 0x500
|
||||
|
||||
gDownArrowYCoords: @ 82E9D0C
|
||||
gDownArrowYCoords: ; 82E9D0C
|
||||
.byte 0, 1, 2, 1
|
||||
|
||||
gWindowVerticalScrollSpeeds: @ 82E9D10
|
||||
gWindowVerticalScrollSpeeds: ; 82E9D10
|
||||
.byte 1, 2, 4, 0
|
||||
|
||||
gGlyphWidthFuncs: @ 82E9D14
|
||||
gGlyphWidthFuncs: ; 82E9D14
|
||||
glyph_width_func 0, GetGlyphWidthFont0+1
|
||||
glyph_width_func 1, GetGlyphWidthFont1+1
|
||||
glyph_width_func 2, GetGlyphWidthFont2+1
|
||||
@ -81,7 +81,7 @@ gGlyphWidthFuncs: @ 82E9D14
|
||||
glyph_width_func 7, GetGlyphWidthFont7+1
|
||||
glyph_width_func 8, GetGlyphWidthFont8+1
|
||||
|
||||
gKeypadIcons: @ 82E9D5C
|
||||
gKeypadIcons: ; 82E9D5C
|
||||
keypad_icon 0x0, 8, 12
|
||||
keypad_icon 0x1, 8, 12
|
||||
keypad_icon 0x2, 16, 12
|
||||
@ -96,10 +96,10 @@ gKeypadIcons: @ 82E9D5C
|
||||
keypad_icon 0x21, 8, 12
|
||||
keypad_icon 0x22, 8, 12
|
||||
|
||||
gKeypadIconTiles: @ 82E9D90
|
||||
gKeypadIconTiles: ; 82E9D90
|
||||
.incbin "base_emerald.gba", 0x2e9d90, 0x800
|
||||
|
||||
gFontInfos: @ 82EA590
|
||||
gFontInfos: ; 82EA590
|
||||
font_info Font0Func+1, 5, 12, 0, 0, 2, 3, 1
|
||||
font_info Font1Func+1, 6, 16, 0, 0, 2, 3, 1
|
||||
font_info Font2Func+1, 6, 14, 0, 0, 2, 3, 1
|
||||
@ -111,7 +111,7 @@ gFontInfos: @ 82EA590
|
||||
font_info Font8Func+1, 5, 8, 0, 0, 2, 3, 1
|
||||
font_info 0, 8, 8, 0, 0, 1, 15, 2
|
||||
|
||||
gMenuCursorDimensions: @ 82EA608
|
||||
gMenuCursorDimensions: ; 82EA608
|
||||
.byte 8, 12
|
||||
.byte 8, 15
|
||||
.byte 8, 14
|
||||
@ -123,23 +123,23 @@ gMenuCursorDimensions: @ 82EA608
|
||||
.byte 8, 8
|
||||
.byte 0, 0
|
||||
|
||||
gFont9JapaneseGlyphs: @ 82EA61C
|
||||
gFont9JapaneseGlyphs: ; 82EA61C
|
||||
.incbin "base_emerald.gba", 0x2ea61c, 0x2000
|
||||
|
||||
@ Unreferenced data. This also comes before the gpu_bg.s data in Ruby and seems
|
||||
@ to be unreferenced there too.
|
||||
; Unreferenced data. This also comes before the gpu_bg.s data in Ruby and seems
|
||||
; to be unreferenced there too.
|
||||
.incbin "base_emerald.gba", 0x2ec61c, 0x18
|
||||
|
||||
@ TODO: gpu_obj.s data
|
||||
; TODO: gpu_obj.s data
|
||||
include_range 0x2ec634, 0x2ec7c4
|
||||
|
||||
gUnknown_82EC7C4: @ 82EC7C4
|
||||
gUnknown_82EC7C4: ; 82EC7C4
|
||||
.2byte 0x0100
|
||||
.2byte 0x0200
|
||||
.2byte 0x0400
|
||||
.2byte 0x0800
|
||||
|
||||
gUnknown_82EC7CC: @ 82EC7CC
|
||||
gUnknown_82EC7CC: ; 82EC7CC
|
||||
.2byte 0x0001
|
||||
.2byte 0x0002
|
||||
.2byte 0x0004
|
||||
@ -153,63 +153,63 @@ gUnknown_82EC7CC: @ 82EC7CC
|
||||
|
||||
include_range 0x31e2f0, 0x616128
|
||||
|
||||
gFont6BrailleGlyphs: @ 8616128
|
||||
gFont6BrailleGlyphs: ; 8616128
|
||||
.incbin "base_emerald.gba", 0x616128, 0x1000
|
||||
|
||||
include_range 0x617128, 0x62bae4
|
||||
|
||||
gFont8LatinGlyphs: @ 862BAE4
|
||||
gFont8LatinGlyphs: ; 862BAE4
|
||||
.incbin "base_emerald.gba", 0x62bae4, 0x8000
|
||||
|
||||
gFont8LatinGlyphWidths: @ 8633AE4
|
||||
gFont8LatinGlyphWidths: ; 8633AE4
|
||||
.incbin "base_emerald.gba", 0x633ae4, 0x200
|
||||
|
||||
gFont0LatinGlyphs: @ 8633CE4
|
||||
gFont0LatinGlyphs: ; 8633CE4
|
||||
.incbin "base_emerald.gba", 0x633ce4, 0x8000
|
||||
|
||||
gFont0LatinGlyphWidths: @ 863BCE4
|
||||
gFont0LatinGlyphWidths: ; 863BCE4
|
||||
.incbin "base_emerald.gba", 0x63bce4, 0x200
|
||||
|
||||
gFont7LatinGlyphs: @ 863BEE4
|
||||
gFont7LatinGlyphs: ; 863BEE4
|
||||
.incbin "base_emerald.gba", 0x63bee4, 0x8000
|
||||
|
||||
gFont7LatinGlyphWidths: @ 8643EE4
|
||||
gFont7LatinGlyphWidths: ; 8643EE4
|
||||
.incbin "base_emerald.gba", 0x643ee4, 0x200
|
||||
|
||||
gFont2LatinGlyphs: @ 86440E4
|
||||
gFont2LatinGlyphs: ; 86440E4
|
||||
.incbin "base_emerald.gba", 0x6440e4, 0x8000
|
||||
|
||||
gFont2LatinGlyphWidths: @ 864C0E4
|
||||
gFont2LatinGlyphWidths: ; 864C0E4
|
||||
.incbin "base_emerald.gba", 0x64c0e4, 0x200
|
||||
|
||||
gFont1LatinGlyphs: @ 864C2E4
|
||||
gFont1LatinGlyphs: ; 864C2E4
|
||||
.incbin "base_emerald.gba", 0x64c2e4, 0x8000
|
||||
|
||||
gFont1LatinGlyphWidths: @ 86542E4
|
||||
gFont1LatinGlyphWidths: ; 86542E4
|
||||
.incbin "base_emerald.gba", 0x6542e4, 0x200
|
||||
|
||||
gFont0JapaneseGlyphs: @ 86544E4
|
||||
gFont0JapaneseGlyphs: ; 86544E4
|
||||
.incbin "base_emerald.gba", 0x6544e4, 0x4000
|
||||
|
||||
gFont1JapaneseGlyphs: @ 86584E4
|
||||
gFont1JapaneseGlyphs: ; 86584E4
|
||||
.incbin "base_emerald.gba", 0x6584e4, 0x4000
|
||||
|
||||
gUnusedFullwidthJapaneseFontGlyphs: @ 865C4E4
|
||||
gUnusedFullwidthJapaneseFontGlyphs: ; 865C4E4
|
||||
.incbin "base_emerald.gba", 0x65c4e4, 0x8000
|
||||
|
||||
gUnusedFullwidthJapaneseFontGlyphWidths: @ 86644E4
|
||||
gUnusedFullwidthJapaneseFontGlyphWidths: ; 86644E4
|
||||
.incbin "base_emerald.gba", 0x6644e4, 0x200
|
||||
|
||||
gUnusedFullwidthJapaneseFont2Glyphs: @ 86646E4
|
||||
gUnusedFullwidthJapaneseFont2Glyphs: ; 86646E4
|
||||
.incbin "base_emerald.gba", 0x6646e4, 0x8000
|
||||
|
||||
gUnusedFullwidthJapaneseFont2GlyphWidths: @ 866C6E4
|
||||
gUnusedFullwidthJapaneseFont2GlyphWidths: ; 866C6E4
|
||||
.incbin "base_emerald.gba", 0x66c6e4, 0x200
|
||||
|
||||
gFont2JapaneseGlyphs: @ 866C8E4
|
||||
gFont2JapaneseGlyphs: ; 866C8E4
|
||||
.incbin "base_emerald.gba", 0x66c8e4, 0x8000
|
||||
|
||||
gFont2JapaneseGlyphWidths: @ 86748E4
|
||||
gFont2JapaneseGlyphWidths: ; 86748E4
|
||||
.incbin "base_emerald.gba", 0x6748e4, 0x200
|
||||
|
||||
.incbin "base_emerald.gba", 0x674ae4
|
||||
|
@ -1,4 +1,4 @@
|
||||
gSpeciesToHoennPokedexNum: @ 831D94C
|
||||
gSpeciesToHoennPokedexNum: ; 831D94C
|
||||
.2byte 203
|
||||
.2byte 204
|
||||
.2byte 205
|
||||
@ -411,7 +411,7 @@ gSpeciesToHoennPokedexNum: @ 831D94C
|
||||
.2byte 202
|
||||
.2byte 151
|
||||
|
||||
gSpeciesToNationalPokedexNum: @ 831DC82
|
||||
gSpeciesToNationalPokedexNum: ; 831DC82
|
||||
.2byte 1
|
||||
.2byte 2
|
||||
.2byte 3
|
||||
@ -824,7 +824,7 @@ gSpeciesToNationalPokedexNum: @ 831DC82
|
||||
.2byte 386
|
||||
.2byte 358
|
||||
|
||||
gHoennToNationalOrder: @ 831DFB8
|
||||
gHoennToNationalOrder: ; 831DFB8
|
||||
.2byte 252
|
||||
.2byte 253
|
||||
.2byte 254
|
||||
|
Loading…
Reference in New Issue
Block a user