From e20e0ce42d1c1fc65cea1a655d64f2c9b2efc17a Mon Sep 17 00:00:00 2001 From: Astatin Date: Sun, 4 Aug 2024 15:49:59 +0900 Subject: Scrolling when bunny goes out of center --- print.gbasm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 print.gbasm (limited to 'print.gbasm') 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 -- cgit v1.2.3-70-g09d2