mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Save UNION stack when using PUSHS as well
This allows using the latter within the former
This commit is contained in:
25
test/asm/union-pushs.asm
Normal file
25
test/asm/union-pushs.asm
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
SECTION "Test", ROM0[0]
|
||||
dw SIZEOF("RAM")
|
||||
dw SIZEOF("HRAM")
|
||||
|
||||
SECTION "RAM",WRAM0
|
||||
ds 654
|
||||
UNION
|
||||
ds 14
|
||||
NEXTU
|
||||
ds 897
|
||||
|
||||
PUSHS
|
||||
|
||||
SECTION "HRAM",HRAM
|
||||
ds $7F
|
||||
|
||||
POPS
|
||||
ds 75
|
||||
NEXTU
|
||||
ds 863
|
||||
ENDU
|
||||
|
||||
ds 28
|
||||
|
||||
0
test/asm/union-pushs.err
Normal file
0
test/asm/union-pushs.err
Normal file
0
test/asm/union-pushs.out
Normal file
0
test/asm/union-pushs.out
Normal file
BIN
test/asm/union-pushs.out.bin
Normal file
BIN
test/asm/union-pushs.out.bin
Normal file
Binary file not shown.
Reference in New Issue
Block a user