summaryrefslogtreecommitdiff
path: root/agbx/source/gfx/flip.s
diff options
context:
space:
mode:
Diffstat (limited to 'agbx/source/gfx/flip.s')
-rw-r--r--agbx/source/gfx/flip.s14
1 files changed, 7 insertions, 7 deletions
diff --git a/agbx/source/gfx/flip.s b/agbx/source/gfx/flip.s
index 32171d1..95f59a6 100644
--- a/agbx/source/gfx/flip.s
+++ b/agbx/source/gfx/flip.s
@@ -7,27 +7,27 @@
.cpu arm7tdmi
.thumb
-.extern __agbx_getvbnk
+.extern __ax_getvbnk
-.globl agbx_flip
+.globl ax_flip
.func
.thumb_func
-agbx_flip:
+ax_flip:
@ 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;
@ XOR bit five:
movs r2,0b10000
eors r1,r2 @ dispcnt ^= 0b10000u;
@ Save dispcnt:
- strh r1,[r0] @ *(agbx_i10 *)dispcntaddr = dispcnt;
+ strh r1,[r0] @ *(ax_i10 *)dispcntaddr = dispcnt;
@ Get the address of the video bank:
- b __agbx_getvbnk @ agbx_i20 vaddr = __agbx_getvbnk();
+ b __ax_getvbnk @ ax_i20 vaddr = __ax_getvbnk();
bx lr @ return vaddr;