mirror of
https://github.com/pret/pokeheartgold.git
synced 2024-11-24 05:40:09 +00:00
name CARD syms
This commit is contained in:
parent
58dbd6cf1e
commit
1ff57597e8
@ -334,7 +334,7 @@ _0201A2F4:
|
||||
mov r1, #9
|
||||
lsl r0, r0, #8
|
||||
lsl r1, r1, #0xa
|
||||
bl sub_020DC9DC
|
||||
bl CARD_SetCacheFlushThreshold
|
||||
mov r0, #0
|
||||
bl GF_CRC16Init
|
||||
pop {r3, r4, r5, pc}
|
||||
|
@ -775,11 +775,11 @@ ov112_021E5E48: ; 0x021E5E48
|
||||
push {r4, r5, lr}
|
||||
sub sp, #0x1c
|
||||
add r0, sp, #0x10
|
||||
bl sub_020DBB48
|
||||
bl RTC_GetTime
|
||||
cmp r0, #0
|
||||
bne _021E5EB0
|
||||
add r0, sp, #0
|
||||
bl sub_020DBA9C
|
||||
bl RTC_GetDate
|
||||
cmp r0, #0
|
||||
bne _021E5EB0
|
||||
add r0, sp, #0
|
||||
@ -15832,7 +15832,7 @@ _021ED980:
|
||||
bl sub_0200DCE8
|
||||
add r0, sp, #0xc
|
||||
add r1, sp, #0
|
||||
bl sub_020DBBFC
|
||||
bl RTC_GetDateTime
|
||||
add r0, sp, #0xc
|
||||
add r1, sp, #0
|
||||
bl RTC_ConvertDateTimeToSecond
|
||||
@ -23575,7 +23575,7 @@ ov112_021F15E4: ; 0x021F15E4
|
||||
add r0, r1, r0
|
||||
ldr r2, [r2]
|
||||
add r1, r1, r4
|
||||
bl sub_020DC514
|
||||
bl RTC_ConvertSecondToDateTime
|
||||
add sp, #0x1c
|
||||
pop {r3, r4, pc}
|
||||
nop
|
||||
|
@ -4433,7 +4433,7 @@ ov13_02222AB0: ; 0x02222AB0
|
||||
mov r2, #0xc
|
||||
bl ov13_02222978
|
||||
add r0, sp, #0
|
||||
bl sub_020DBB48
|
||||
bl RTC_GetTime
|
||||
cmp r0, #0
|
||||
bne _02222AE2
|
||||
ldr r0, [sp]
|
||||
|
@ -7735,7 +7735,7 @@ ov45_0222D500: ; 0x0222D500
|
||||
add r4, r0, #0
|
||||
add r0, sp, #0xc
|
||||
add r1, sp, #0
|
||||
bl sub_020DC514
|
||||
bl RTC_ConvertSecondToDateTime
|
||||
ldr r0, [sp]
|
||||
strb r0, [r4]
|
||||
ldr r0, [sp, #4]
|
||||
|
@ -8833,10 +8833,10 @@ _0223BFC0:
|
||||
add r1, sp, #0
|
||||
bl ov00_021ECB94
|
||||
add r0, sp, #0xc
|
||||
bl sub_020DC284
|
||||
bl RTC_ConvertDateToDay
|
||||
add r4, r0, #0
|
||||
add r0, sp, #0x1c
|
||||
bl sub_020DC284
|
||||
bl RTC_ConvertDateToDay
|
||||
sub r0, r4, r0
|
||||
bmi _0223C002
|
||||
cmp r0, #3
|
||||
|
@ -4639,7 +4639,7 @@ ov74_0222947C: ; 0x0222947C
|
||||
add r0, sp, #0x10
|
||||
bl GF_RTC_CopyDate
|
||||
add r0, sp, #0x10
|
||||
bl sub_020DC284
|
||||
bl RTC_ConvertDateToDay
|
||||
mov r1, #0xd5
|
||||
lsl r1, r1, #2
|
||||
str r0, [r4, r1]
|
||||
@ -6242,7 +6242,7 @@ _0222A1BC:
|
||||
add r0, sp, #8
|
||||
bl GF_RTC_CopyDate
|
||||
add r0, sp, #8
|
||||
bl sub_020DC284
|
||||
bl RTC_ConvertDateToDay
|
||||
mov r1, #0xd5
|
||||
lsl r1, r1, #2
|
||||
str r0, [r5, r1]
|
||||
@ -12618,7 +12618,7 @@ ov74_0222D55C: ; 0x0222D55C
|
||||
lsl r1, r1, #2
|
||||
ldr r1, [r2, r1]
|
||||
add r0, sp, #8
|
||||
bl sub_020DC394
|
||||
bl RTC_ConvertDayToDate
|
||||
mov r0, #2
|
||||
str r0, [sp]
|
||||
mov r0, #1
|
||||
@ -15751,7 +15751,7 @@ ov74_0222EEB0: ; 0x0222EEB0
|
||||
lsl r1, r1, #2
|
||||
ldr r1, [r2, r1]
|
||||
add r0, sp, #8
|
||||
bl sub_020DC394
|
||||
bl RTC_ConvertDayToDate
|
||||
mov r0, #2
|
||||
str r0, [sp]
|
||||
mov r0, #1
|
||||
|
@ -167,7 +167,7 @@ Sav2_SysInfo_RTC_init: ; 0x02028DE8
|
||||
add r1, #0x14
|
||||
bl GF_RTC_CopyDateTime
|
||||
add r0, r4, #4
|
||||
bl sub_020DC284
|
||||
bl RTC_ConvertDateToDay
|
||||
add r1, r4, #0
|
||||
str r0, [r4, #0x20]
|
||||
add r0, r4, #4
|
||||
@ -230,7 +230,7 @@ sub_02028E4C: ; 0x02028E4C
|
||||
add r1, #0x14
|
||||
bl GF_RTC_CopyDateTime
|
||||
add r0, r4, #4
|
||||
bl sub_020DC284
|
||||
bl RTC_ConvertDateToDay
|
||||
str r0, [r4, #0x20]
|
||||
pop {r4, pc}
|
||||
.balign 4, 0
|
||||
|
@ -1707,7 +1707,7 @@ _02027D7C:
|
||||
bl CARD_TryWaitBackupAsync
|
||||
cmp r0, #0
|
||||
bne _02027D88
|
||||
bl sub_020DD1B0
|
||||
bl CARD_CancelBackupAsync
|
||||
_02027D88:
|
||||
ldr r0, [r4, #0x1c]
|
||||
cmp r0, #0
|
||||
|
@ -38,7 +38,7 @@ sub_02055450: ; 0x02055450
|
||||
add r6, r0, #0
|
||||
add r5, r1, #0
|
||||
add r0, r2, #0
|
||||
bl sub_020DC284
|
||||
bl RTC_ConvertDateToDay
|
||||
ldr r1, [r5, #0x20]
|
||||
add r4, r0, #0
|
||||
cmp r4, r1
|
||||
@ -273,7 +273,7 @@ sub_02055624: ; 0x02055624
|
||||
ldr r3, [r3, #0x28]
|
||||
add r0, r5, #0
|
||||
add r1, r4, #0
|
||||
bl sub_020DC514
|
||||
bl RTC_ConvertSecondToDateTime
|
||||
pop {r3, r4, r5, pc}
|
||||
thumb_func_end sub_02055624
|
||||
|
||||
@ -289,7 +289,7 @@ sub_02055640: ; 0x02055640
|
||||
ldr r3, [r3, #0x30]
|
||||
add r0, r5, #0
|
||||
add r1, r4, #0
|
||||
bl sub_020DC514
|
||||
bl RTC_ConvertSecondToDateTime
|
||||
pop {r3, r4, r5, pc}
|
||||
thumb_func_end sub_02055640
|
||||
|
||||
|
16
global.inc
16
global.inc
@ -29368,16 +29368,16 @@
|
||||
.public PM_AppendPostSleepCallback
|
||||
.public PM_DeletePreSleepCallback
|
||||
.public PM_DeletePostSleepCallback
|
||||
.public sub_020DBA9C
|
||||
.public sub_020DBB48
|
||||
.public sub_020DBBFC
|
||||
.public sub_020DC284
|
||||
.public sub_020DC394
|
||||
.public sub_020DC514
|
||||
.public RTC_GetDate
|
||||
.public RTC_GetTime
|
||||
.public RTC_GetDateTime
|
||||
.public RTC_ConvertDateToDay
|
||||
.public RTC_ConvertDayToDate
|
||||
.public RTC_ConvertSecondToDateTime
|
||||
.public CARD_LockRom
|
||||
.public CARD_UnlockRom
|
||||
.public sub_020DC9DC
|
||||
.public sub_020DD1B0
|
||||
.public CARD_SetCacheFlushThreshold
|
||||
.public CARD_CancelBackupAsync
|
||||
.public CARDi_ReadRom
|
||||
.public CARD_Init
|
||||
.public sub_020DDC70
|
||||
|
@ -1133,7 +1133,7 @@ _021E8A84:
|
||||
bl OS_SNPrintf
|
||||
add r0, sp, #0x28
|
||||
add r1, sp, #0x1c
|
||||
bl sub_020DBBFC
|
||||
bl RTC_GetDateTime
|
||||
cmp r0, #0
|
||||
addne sp, sp, #0x8c
|
||||
movne r0, #0
|
||||
@ -4192,7 +4192,7 @@ ov00_021EB5B0: ; 0x021EB5B0
|
||||
bne _021EB7B0
|
||||
add r0, sp, #0x2c
|
||||
add r1, sp, #0x20
|
||||
bl sub_020DBBFC
|
||||
bl RTC_GetDateTime
|
||||
cmp r0, #0
|
||||
bne _021EB7B0
|
||||
add r0, sp, #0x2c
|
||||
@ -5849,7 +5849,7 @@ ov00_021ECB94: ; 0x021ECB94
|
||||
cmp r2, #0
|
||||
moveq r0, #0
|
||||
ldmeqia sp!, {r3, r4, r5, pc}
|
||||
bl sub_020DBBFC
|
||||
bl RTC_GetDateTime
|
||||
cmp r0, #0
|
||||
movne r0, #0
|
||||
ldmneia sp!, {r3, r4, r5, pc}
|
||||
@ -5890,7 +5890,7 @@ _021ECC3C:
|
||||
_021ECC44:
|
||||
mov r0, r5
|
||||
mov r1, r4
|
||||
bl sub_020DC514
|
||||
bl RTC_ConvertSecondToDateTime
|
||||
mov r0, #1
|
||||
ldmia sp!, {r3, r4, r5, pc}
|
||||
.balign 4, 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <nitro.h>
|
||||
|
||||
asm u32 OS_GetDTCMParam(void) {
|
||||
asm u32 OS_GetDTCMAddress(void) {
|
||||
mrc p15, 0, r0, c9, c1, 0
|
||||
ldr r1, =0xFFFFF000
|
||||
and r0, r0, r1
|
||||
|
534
lib/asm/nitro.s
534
lib/asm/nitro.s
File diff suppressed because it is too large
Load Diff
@ -8266,13 +8266,13 @@ sub_0209F630: ; 0x0209F630
|
||||
bl sub_0209E430
|
||||
bl RTC_Init
|
||||
add r0, sp, #0x14
|
||||
bl sub_020DBA9C
|
||||
bl RTC_GetDate
|
||||
cmp r0, #0
|
||||
addne sp, sp, #0x24
|
||||
movne r0, #0
|
||||
ldmneia sp!, {r4, r5, r6, r7, r8, sb, sl, fp, pc}
|
||||
add r0, sp, #8
|
||||
bl sub_020DBB48
|
||||
bl RTC_GetTime
|
||||
cmp r0, #0
|
||||
addne sp, sp, #0x24
|
||||
movne r0, #0
|
||||
@ -8450,13 +8450,13 @@ sub_0209F8A0: ; 0x0209F8A0
|
||||
bl sub_0209E430
|
||||
bl RTC_Init
|
||||
add r0, sp, #0x14
|
||||
bl sub_020DBA9C
|
||||
bl RTC_GetDate
|
||||
cmp r0, #0
|
||||
addne sp, sp, #0x24
|
||||
movne r0, #0
|
||||
ldmneia sp!, {r4, r5, r6, r7, r8, sb, sl, fp, pc}
|
||||
add r0, sp, #8
|
||||
bl sub_020DBB48
|
||||
bl RTC_GetTime
|
||||
cmp r0, #0
|
||||
addne sp, sp, #0x24
|
||||
movne r0, #0
|
||||
@ -19375,9 +19375,9 @@ sub_020A8820: ; 0x020A8820
|
||||
stmdb sp!, {lr}
|
||||
sub sp, sp, #0x1c
|
||||
add r0, sp, #0xc
|
||||
bl sub_020DBA9C
|
||||
bl RTC_GetDate
|
||||
add r0, sp, #0
|
||||
bl sub_020DBB48
|
||||
bl RTC_GetTime
|
||||
add r0, sp, #0xc
|
||||
add r1, sp, #0
|
||||
bl RTC_ConvertDateTimeToSecond
|
||||
@ -20194,7 +20194,7 @@ sub_020A92A4: ; 0x020A92A4
|
||||
add r0, sp, #8
|
||||
str r1, [sl, #0x45c]
|
||||
add r8, r4, r2, lsl #8
|
||||
bl sub_020DBA9C
|
||||
bl RTC_GetDate
|
||||
mov r6, #0
|
||||
ldr r1, [sp, #8]
|
||||
ldr r0, [sp, #0xc]
|
||||
|
Loading…
Reference in New Issue
Block a user