through Cb2_StartWallClock and associated data
This commit is contained in:
183
asm/wallclock.s
183
asm/wallclock.s
@@ -5,189 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_813498C
|
||||
sub_813498C: @ 813498C
|
||||
push {lr}
|
||||
sub sp, 0x4
|
||||
movs r0, 0x1
|
||||
negs r0, r0
|
||||
movs r1, 0
|
||||
str r1, [sp]
|
||||
movs r2, 0x10
|
||||
movs r3, 0
|
||||
bl BeginNormalPaletteFade
|
||||
movs r0, 0x1
|
||||
bl EnableInterrupts
|
||||
ldr r0, =sub_81347B4
|
||||
bl SetVBlankCallback
|
||||
ldr r0, =sub_8134C9C
|
||||
bl SetMainCallback2
|
||||
movs r0, 0x50
|
||||
movs r1, 0
|
||||
bl SetGpuReg
|
||||
movs r0, 0x52
|
||||
movs r1, 0
|
||||
bl SetGpuReg
|
||||
movs r0, 0x54
|
||||
movs r1, 0
|
||||
bl SetGpuReg
|
||||
movs r1, 0x82
|
||||
lsls r1, 5
|
||||
movs r0, 0
|
||||
bl SetGpuReg
|
||||
movs r0, 0
|
||||
bl ShowBg
|
||||
movs r0, 0x2
|
||||
bl ShowBg
|
||||
movs r0, 0x3
|
||||
bl ShowBg
|
||||
add sp, 0x4
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_813498C
|
||||
|
||||
thumb_func_start Cb2_StartWallClock
|
||||
Cb2_StartWallClock: @ 81349F4
|
||||
push {r4-r6,lr}
|
||||
mov r6, r10
|
||||
mov r5, r9
|
||||
mov r4, r8
|
||||
push {r4-r6}
|
||||
sub sp, 0xC
|
||||
bl LoadWallClockGraphics
|
||||
ldr r0, =gUnknown_08DCC648
|
||||
ldr r1, =0x06003800
|
||||
bl LZ77UnCompVram
|
||||
ldr r0, =sub_8134CB8
|
||||
movs r1, 0
|
||||
bl CreateTask
|
||||
adds r6, r0, 0
|
||||
lsls r6, 24
|
||||
lsrs r6, 24
|
||||
ldr r1, =gTasks
|
||||
lsls r0, r6, 2
|
||||
adds r0, r6
|
||||
lsls r0, 3
|
||||
adds r0, r1
|
||||
movs r1, 0
|
||||
mov r8, r1
|
||||
movs r1, 0xA
|
||||
strh r1, [r0, 0xC]
|
||||
mov r2, r8
|
||||
strh r2, [r0, 0xE]
|
||||
strh r2, [r0, 0x10]
|
||||
strh r2, [r0, 0x12]
|
||||
strh r2, [r0, 0x14]
|
||||
strh r2, [r0, 0x8]
|
||||
movs r1, 0x96
|
||||
lsls r1, 1
|
||||
strh r1, [r0, 0xA]
|
||||
ldr r0, =gUnknown_085B2250
|
||||
movs r1, 0x78
|
||||
movs r2, 0x50
|
||||
movs r3, 0x1
|
||||
bl CreateSprite
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldr r1, =gSprites
|
||||
mov r9, r1
|
||||
lsls r1, r0, 4
|
||||
adds r1, r0
|
||||
lsls r1, 2
|
||||
add r1, r9
|
||||
strh r6, [r1, 0x2E]
|
||||
ldrb r2, [r1, 0x1]
|
||||
movs r5, 0x4
|
||||
negs r5, r5
|
||||
adds r0, r5, 0
|
||||
ands r0, r2
|
||||
movs r2, 0x1
|
||||
mov r10, r2
|
||||
mov r2, r10
|
||||
orrs r0, r2
|
||||
strb r0, [r1, 0x1]
|
||||
ldrb r2, [r1, 0x3]
|
||||
movs r4, 0x3F
|
||||
negs r4, r4
|
||||
adds r0, r4, 0
|
||||
ands r0, r2
|
||||
strb r0, [r1, 0x3]
|
||||
ldr r0, =gUnknown_085B2268
|
||||
movs r1, 0x78
|
||||
movs r2, 0x50
|
||||
movs r3, 0
|
||||
bl CreateSprite
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, r0, 4
|
||||
adds r1, r0
|
||||
lsls r1, 2
|
||||
add r1, r9
|
||||
strh r6, [r1, 0x2E]
|
||||
ldrb r0, [r1, 0x1]
|
||||
ands r5, r0
|
||||
mov r0, r10
|
||||
orrs r5, r0
|
||||
strb r5, [r1, 0x1]
|
||||
ldrb r0, [r1, 0x3]
|
||||
ands r4, r0
|
||||
movs r0, 0x2
|
||||
orrs r4, r0
|
||||
strb r4, [r1, 0x3]
|
||||
ldr r0, =gUnknown_085B22A0
|
||||
movs r1, 0x78
|
||||
movs r2, 0x50
|
||||
movs r3, 0x2
|
||||
bl CreateSprite
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, r0, 4
|
||||
adds r1, r0
|
||||
lsls r1, 2
|
||||
add r1, r9
|
||||
strh r6, [r1, 0x2E]
|
||||
movs r0, 0x2D
|
||||
strh r0, [r1, 0x30]
|
||||
ldr r0, =gUnknown_085B22B8
|
||||
movs r1, 0x78
|
||||
movs r2, 0x50
|
||||
movs r3, 0x2
|
||||
bl CreateSprite
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, r0, 4
|
||||
adds r1, r0
|
||||
lsls r1, 2
|
||||
add r1, r9
|
||||
strh r6, [r1, 0x2E]
|
||||
movs r0, 0x5A
|
||||
strh r0, [r1, 0x30]
|
||||
bl sub_813498C
|
||||
ldr r2, =gText_Confirm3
|
||||
movs r0, 0x1
|
||||
str r0, [sp]
|
||||
mov r1, r8
|
||||
str r1, [sp, 0x4]
|
||||
str r1, [sp, 0x8]
|
||||
movs r1, 0x1
|
||||
movs r3, 0
|
||||
bl PrintTextOnWindow
|
||||
movs r0, 0x1
|
||||
bl PutWindowTilemap
|
||||
movs r0, 0x2
|
||||
bl schedule_bg_copy_tilemap_to_vram
|
||||
add sp, 0xC
|
||||
pop {r3-r5}
|
||||
mov r8, r3
|
||||
mov r9, r4
|
||||
mov r10, r5
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end Cb2_StartWallClock
|
||||
|
||||
thumb_func_start Cb2_ViewWallClock
|
||||
Cb2_ViewWallClock: @ 8134B44
|
||||
push {r4-r7,lr}
|
||||
|
||||
Reference in New Issue
Block a user