diff options
Diffstat (limited to 'agbx/source/gfx/getvbnk.s')
-rw-r--r-- | agbx/source/gfx/getvbnk.s | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/agbx/source/gfx/getvbnk.s b/agbx/source/gfx/getvbnk.s index f2e22ae..1c6a64e 100644 --- a/agbx/source/gfx/getvbnk.s +++ b/agbx/source/gfx/getvbnk.s @@ -7,19 +7,19 @@ .cpu arm7tdmi .thumb -.globl __agbx_getvbnk -.globl agbx_getvbnk +.globl __ax_getvbnk +.globl ax_getvbnk .func .thumb_func -agbx_getvbnk: +ax_getvbnk: @ Get the current value of dispcnt: - ldr r0,.dispcntaddr @ agbx_i20 dispcntaddr = 0x4000000u; - ldrh r1,[r0] @ agbx_i10 dispcnt = *(agbx_i10 *)dispcntaddr; + ldr r0,.dispcntaddr @ ax_i20 dispcntaddr = 0x4000000u; + ldrh r1,[r0] @ ax_i10 dispcnt = *(ax_i10 *)dispcntaddr; @ Get the address: - b __agbx_getvbnk @ agbx_i20 vaddr = __agbx_getvbnk(); + b __ax_getvbnk @ ax_i20 vaddr = __ax_getvbnk(); bx lr @ return vaddr; @@ -28,7 +28,7 @@ agbx_getvbnk: .func .thumb_func -__agbx_getvbnk: @ Takes the value of dispcnt in r1. +__ax_getvbnk: @ Takes the value of dispcnt in r1. @ Check if the fifth bit is set: movs r0,0b10000 tst r1,r0 |