Save UNION stack when using PUSHS as well

This allows using the latter within the former
This commit is contained in:
ISSOtm
2021-05-21 09:47:27 +02:00
parent 69d7f84502
commit e3b7339dd6
5 changed files with 54 additions and 15 deletions

25
test/asm/union-pushs.asm Normal file
View 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
View File

0
test/asm/union-pushs.out Normal file
View File

Binary file not shown.