diff options
author | Juan J. Martinez <jjm@usebox.net> | 2020-12-30 19:07:31 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2020-12-30 19:23:41 +0000 |
commit | 2682bc5d1d864341aaeb42a449db73c3ecd16d70 (patch) | |
tree | 9116764364b4ee0ce7f6037305077807b57776de /src/ubox/ubox_put_tile.z80 | |
download | ubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.tar.gz ubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.zip |
Initial import1.0
Diffstat (limited to 'src/ubox/ubox_put_tile.z80')
-rw-r--r-- | src/ubox/ubox_put_tile.z80 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ubox/ubox_put_tile.z80 b/src/ubox/ubox_put_tile.z80 new file mode 100644 index 0000000..1bdf3ce --- /dev/null +++ b/src/ubox/ubox_put_tile.z80 @@ -0,0 +1,30 @@ +.globl _ubox_put_tile + +WRTVRM = 0x004d + +_ubox_put_tile:: + ld hl, #2 + add hl, sp + + ld c, (hl) + inc hl + ld b, (hl) + inc hl + + ld a, (hl) + + ld h, #0 + ld l, b + add hl, hl + add hl, hl + add hl, hl + add hl, hl + add hl, hl + ld b, #0 + add hl, bc + + ld bc, #0x1800 + add hl, bc + + jp WRTVRM + |