diff options
author | Astatin <[email protected]> | 2024-08-04 15:49:59 +0900 |
---|---|---|
committer | Astatin <astatin@redacted> | 2024-08-04 15:49:59 +0900 |
commit | e20e0ce42d1c1fc65cea1a655d64f2c9b2efc17a (patch) | |
tree | 0d798e43c2e0becba0807bfec7de6b60e35ab73c /print.gbasm | |
parent | 0cb98aa2abb54e0a922ed9e3280e6b67aff5ba6a (diff) |
Scrolling when bunny goes out of center
Diffstat (limited to 'print.gbasm')
-rw-r--r-- | print.gbasm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/print.gbasm b/print.gbasm new file mode 100644 index 0000000..e5bb898 --- /dev/null +++ b/print.gbasm @@ -0,0 +1,18 @@ +Print_8bit: ; Number in A, Memory Tilemap position in HL + PUSH AF + PUSH BC + + LD C, A + SWAP A ; We start by the highest nibble + AND $0f + OR $10 + LD (HL+), A + + LD A, C + AND $0f ; Then the lowest + OR $10 + LD (HL+), A + + POP BC + POP AF + RET |