2021-10-30 13:15:11 +00:00
%import textio
%zeropage basicsafe
2021-10-27 21:48:02 +00:00
2021-10-30 13:15:11 +00:00
main {
2021-10-30 21:15:18 +00:00
2021-10-14 22:28:23 +00:00
sub start() {
2021-10-30 13:15:11 +00:00
2021-10-30 21:15:18 +00:00
2021-10-31 01:34:17 +00:00
ubyte xx = 100
ubyte cv
2021-10-30 23:20:29 +00:00
2021-10-31 01:34:17 +00:00
sys.memset($1000+xx, 10, 255) ; TODO uses stack eval now to precalc parameters
2021-10-30 23:20:29 +00:00
2021-10-31 01:34:17 +00:00
xx = xx & %0001 ; doesn't use stack... because it uses AugmentableAssignmentAsmGen
;yy = xx & %0001 ; doesn't use stack... because it uses AugmentableAssignmentAsmGen
2021-10-30 21:15:18 +00:00
2021-10-31 01:34:17 +00:00
;ubyte yy = xx & %0001 ; TODO uses stack eval....
if xx & %0001 { ; TODO why does this use stack? because it uses asmgen.assignExpressionToRegister eventually line 253 in AssignmentAsmGen no augmentable-assignment.
2021-10-30 21:15:18 +00:00
xx--
}
2021-10-31 01:34:17 +00:00
; if xx+1 { ; TODO why does this use stack? see above
; xx++
; }
;
; if xx { ; doesn't use stack...
; xx++
; }
;
; xx = xx+1 ; doesn't use stack...
;
; if 8<xx {
; }
;
; do {
; xx++
; } until xx+1
;
; while xx+1 {
; xx++
; }
2021-10-27 21:48:02 +00:00
}
2021-05-12 22:35:22 +00:00
}