2021-11-27 17:09:15 +00:00
|
|
|
%import test_stack
|
2021-10-27 21:48:02 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2021-11-06 18:09:33 +00:00
|
|
|
|
2021-11-09 23:17:56 +00:00
|
|
|
sub start() {
|
2021-11-27 17:09:15 +00:00
|
|
|
test_stack.test()
|
|
|
|
|
|
|
|
sys.push(-22 as ubyte)
|
|
|
|
sys.push(44)
|
|
|
|
sys.pushw(-11234 as uword)
|
|
|
|
sys.pushw(12345)
|
|
|
|
sys.push(1)
|
|
|
|
sys.push(2)
|
|
|
|
ubyte @shared ub = sys.pop()
|
|
|
|
byte @shared bb = sys.pop() as byte
|
|
|
|
uword @shared uw = sys.popw()
|
|
|
|
word @shared ww = sys.popw() as word
|
|
|
|
void sys.pop()
|
|
|
|
void sys.pop()
|
|
|
|
|
|
|
|
; routine2(uw+1, true)
|
|
|
|
|
|
|
|
test_stack.test()
|
2021-11-20 23:07:17 +00:00
|
|
|
|
|
|
|
repeat {
|
|
|
|
}
|
2021-11-27 13:08:34 +00:00
|
|
|
|
2021-11-16 22:52:30 +00:00
|
|
|
}
|
2021-11-21 11:34:57 +00:00
|
|
|
|
2021-11-27 14:41:44 +00:00
|
|
|
asmsub routine2(uword num @AY, ubyte switch @X) {
|
2021-11-21 22:21:39 +00:00
|
|
|
%asm {{
|
2021-11-26 21:11:52 +00:00
|
|
|
adc #20
|
2021-11-21 22:21:39 +00:00
|
|
|
rts
|
|
|
|
}}
|
2021-11-21 15:23:48 +00:00
|
|
|
}
|
2021-11-21 22:21:39 +00:00
|
|
|
|
2021-05-12 22:35:22 +00:00
|
|
|
}
|