Add test for LOAD

This commit is contained in:
ISSOtm
2020-02-09 18:53:48 +01:00
parent cdabc057a0
commit 02ea52f453
4 changed files with 23 additions and 0 deletions

20
test/asm/ram-code.asm Normal file
View File

@@ -0,0 +1,20 @@
SECTION "test", ROM0[1]
call Target
LOAD "new", WRAM0[$C001]
Target: dl $DEADBEEF
.end
ENDL
After:
jp Target
ld hl, Word
dw Byte, Target.end, After
SECTION "ram test", WRAM0 ; Should end up at $C005
Word:
dw
SECTION "small ram test", WRAM0 ; Should end up at $C000
Byte:
db
PRINTT "{Target}\n{Target.end}\n{After}\n"

0
test/asm/ram-code.err Normal file
View File

3
test/asm/ram-code.out Normal file
View File

@@ -0,0 +1,3 @@
$C001
$C005
$8

BIN
test/asm/ram-code.out.bin Normal file

Binary file not shown.