2023-03-16 18:36:16 +00:00
|
|
|
%import textio
|
|
|
|
%import test_stack
|
|
|
|
%zeropage basicsafe
|
|
|
|
%option no_sysinit
|
|
|
|
|
2023-03-17 23:16:18 +00:00
|
|
|
; $1e4 size
|
|
|
|
|
2022-10-22 11:33:35 +00:00
|
|
|
main {
|
2023-03-16 18:36:16 +00:00
|
|
|
|
|
|
|
sub start() {
|
|
|
|
test_stack.test()
|
2023-03-18 15:48:11 +00:00
|
|
|
|
2023-03-18 10:04:51 +00:00
|
|
|
uword xx=4000
|
|
|
|
ubyte a
|
|
|
|
ubyte b
|
|
|
|
ubyte c
|
|
|
|
ubyte d
|
2023-03-16 18:36:16 +00:00
|
|
|
|
2023-03-18 16:18:56 +00:00
|
|
|
cx16.r0 = peekw(xx+42)
|
|
|
|
; TODO cx16.r0 = peekw(a+xx+b+c+d+)
|
2023-03-18 10:04:51 +00:00
|
|
|
; TODO @(a+xx+b+c+d) = cx16.r0L
|
2023-03-16 18:36:16 +00:00
|
|
|
|
2023-03-17 23:16:18 +00:00
|
|
|
; if cx16.r0L in "derp" {
|
|
|
|
; xx++
|
|
|
|
; }
|
|
|
|
;
|
|
|
|
; xx = xx+(3*func(xx)+xx*2*cx16.r0L)
|
|
|
|
; txt.print_uw(xx)
|
2023-03-16 18:36:16 +00:00
|
|
|
test_stack.test()
|
|
|
|
}
|
|
|
|
|
2023-03-17 23:16:18 +00:00
|
|
|
; sub func(uword value) -> uword {
|
|
|
|
; value ++
|
|
|
|
; return value
|
|
|
|
; }
|
2022-12-04 15:02:58 +00:00
|
|
|
}
|