mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
26 lines
407 B
NASM
26 lines
407 B
NASM
SECTION "test", ROM0[1]
|
|
call Target
|
|
LOAD "new", WRAM0[$C001]
|
|
Target: dl DEAD << 16 | BEEF
|
|
.end
|
|
ENDL
|
|
After:
|
|
jp Target
|
|
ld hl, Word
|
|
dw Byte, Target.end, After
|
|
|
|
SECTION "dead", WRAMX[$DEAD]
|
|
DEAD:
|
|
SECTION "beef", SRAM[$BEEF]
|
|
BEEF:
|
|
|
|
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"
|