- [NEW] load binary to memory from inside or as arguments to exe

- Trying berserk
This commit is contained in:
2024-04-25 06:41:35 +02:00
parent b05ce14a95
commit 7eb5df248f
7 changed files with 65 additions and 6 deletions

27
test.asm Normal file
View File

@@ -0,0 +1,27 @@
.org $8000
ei
START:
ld a, 2
out ($fe), a
ld b, 255
ld de, TILES
ld hl, $4000
LOOP:
ld a, (de)
ld (hl), a
inc e
inc h
djnz LOOP
ld a, (de)
ld hl, $5800
ld (hl), a
ld a, 0
out ($fe), a
halt
jr START
TILES: db $81, $42, $24, $18, $18, $24, $42, $81, $4d