mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-29 14:27:50 +00:00
Add syntax to push and modify stacks in one line (#1421)
This commit is contained in:
@@ -20,6 +20,11 @@ MACRO push_
|
||||
pushc
|
||||
ENDM
|
||||
|
||||
MACRO push_set_
|
||||
println "pushc \1"
|
||||
pushc \1
|
||||
ENDM
|
||||
|
||||
MACRO pop_
|
||||
println "popc"
|
||||
popc
|
||||
@@ -83,9 +88,8 @@ charmap "ef", $3
|
||||
|
||||
push_
|
||||
set_ map2
|
||||
push_
|
||||
|
||||
set_ map3
|
||||
push_set_ map3
|
||||
|
||||
print_mapped "ab"
|
||||
print_mapped "cd"
|
||||
|
||||
Reference in New Issue
Block a user