diff options
Diffstat (limited to 'agbx/source/bs')
-rw-r--r-- | agbx/source/bs/get.s | 15 | ||||
-rw-r--r-- | agbx/source/bs/set.s | 15 |
2 files changed, 12 insertions, 18 deletions
diff --git a/agbx/source/bs/get.s b/agbx/source/bs/get.s index dfd6453..b827dec 100644 --- a/agbx/source/bs/get.s +++ b/agbx/source/bs/get.s @@ -12,31 +12,28 @@ .globl agbx_get8 .func - .thumb_func agbx_get10: - ldrh r0,[r0] - bx lr + ldrh r0,[r0] @ agbx_i10 val = *(agbx_i10 *)addr; + bx lr @ return val; .endfunc .func - .thumb_func agbx_get20: - ldr r0,[r0] - bx lr + ldr r0,[r0] @ agbx_i20 val = *(agbx_i20 *)addr; + bx lr @ return val; .endfunc .func - .thumb_func agbx_get8: - ldrb r0,[r0] - bx lr + ldrb r0,[r0] @ agbx_i8 val = *(agbx_i8 *)addr; + bx lr @ return val; .endfunc diff --git a/agbx/source/bs/set.s b/agbx/source/bs/set.s index 93ea3b5..85e6372 100644 --- a/agbx/source/bs/set.s +++ b/agbx/source/bs/set.s @@ -12,31 +12,28 @@ .globl agbx_set8 .func - .thumb_func agbx_set10: - strh r1,[r0] - bx lr + strh r1,[r0] @ *(agbx_i10 *)addr = val; + bx lr @ return; .endfunc .func - .thumb_func agbx_set20: - str r1,[r0] - bx lr + str r1,[r0] @ *(agbx_i20 *)addr = val; + bx lr @ return; .endfunc .func - .thumb_func agbx_set8: - strb r1,[r0] - bx lr + strb r1,[r0] @ *(agbx_i8 *)addr = val; + bx lr @ return; .endfunc |