summaryrefslogtreecommitdiff
path: root/src/ubox/ubox_set_tiles.z80
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2020-12-30 19:07:31 +0000
committerJuan J. Martinez <jjm@usebox.net>2020-12-30 19:23:41 +0000
commit2682bc5d1d864341aaeb42a449db73c3ecd16d70 (patch)
tree9116764364b4ee0ce7f6037305077807b57776de /src/ubox/ubox_set_tiles.z80
downloadubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.tar.gz
ubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.zip
Initial import1.0
Diffstat (limited to 'src/ubox/ubox_set_tiles.z80')
-rw-r--r--src/ubox/ubox_set_tiles.z8021
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ubox/ubox_set_tiles.z80 b/src/ubox/ubox_set_tiles.z80
new file mode 100644
index 0000000..fbb2ff9
--- /dev/null
+++ b/src/ubox/ubox_set_tiles.z80
@@ -0,0 +1,21 @@
+.globl _ubox_set_tiles
+
+LDIRVM = 0x005c
+
+_ubox_set_tiles::
+ ld de, #0
+ ld bc, #256 * 8
+ push hl
+ call LDIRVM
+ pop hl
+
+ ld de, #256 * 8
+ ld bc, #256 * 8
+ push hl
+ call LDIRVM
+ pop hl
+
+ ld de, #256 * 8 * 2
+ ld bc, #256 * 8
+ jp LDIRVM
+