diff options
author | Christian Cunningham <cc@localhost> | 2021-12-18 23:22:47 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2021-12-18 23:22:47 -0800 |
commit | 6d1a74d66fb0f2dbe2440bdf6459d1eca1397361 (patch) | |
tree | 2c2416357d98ee0a81f6f0a3d0b31a34134d6613 /src/graphics | |
parent | b444462b27c5062078f59c99a0074a7a9965c1e1 (diff) |
Fix register order
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/core.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics/core.S b/src/graphics/core.S index 3851c0e..3e3b038 100644 --- a/src/graphics/core.S +++ b/src/graphics/core.S @@ -35,7 +35,7 @@ init_graphics: .globl draw_pix draw_pix: - push {lr, r0, r1, r2, r3, r4} + push {r0, r1, r2, r3, r4, lr} ldr r4, =vram_base ldr r4, [r4] mov r3, #2 @@ -48,7 +48,7 @@ draw_pix: add r4, r3 pop {r1} str r1, [r4] - pop {pc, r0, r1, r2, r3, r4} + pop {r0, r1, r2, r3, r4, pc} @@@@@@@@@@@@@@@ VC @@@@@@@@@@@@@@ |