summaryrefslogtreecommitdiff
path: root/agbx/source/gfx/getpx.s
diff options
context:
space:
mode:
Diffstat (limited to 'agbx/source/gfx/getpx.s')
-rw-r--r--agbx/source/gfx/getpx.s32
1 files changed, 0 insertions, 32 deletions
diff --git a/agbx/source/gfx/getpx.s b/agbx/source/gfx/getpx.s
deleted file mode 100644
index 1db82a8..0000000
--- a/agbx/source/gfx/getpx.s
+++ /dev/null
@@ -1,32 +0,0 @@
-@ Copyright 2022 Gabriel Jensen.
-@ This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
-@ If a copy of the MPL was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0>.
-
-.syntax unified
-
-.cpu arm7tdmi
-.thumb
-
-.globl ax_getpx1
-.globl ax_getpx2
-
-.func
-.thumb_func
-
-ax_getpx1:
- adds r0,r1 @ Get the address of the pixel by adding the offset to the video address.
- ldrh r0,[r0]
- bx lr
-
-.endfunc
-
-.func
-.thumb_func
-
-ax_getpx2:
- adds r0,r1 @ Get the address of the pixel by adding the offset to the video address.
- adds r0,r1 @ Add the offset twice as each pixel takes up two bytes.
- ldrh r0,[r0]
- bx lr
-
-.endfunc