prog8/examples/test.p8

44 lines
633 B
Plaintext
Raw Normal View History

%import test_stack
%import textio
2020-12-28 00:08:22 +01:00
%import floats
%zeropage basicsafe
2020-12-08 01:02:38 +01:00
%option no_sysinit
main {
sub start () {
2020-12-29 22:53:53 +01:00
uword cnt
ubyte ub
2020-12-29 22:53:53 +01:00
; TODO differences between:
repeat cnt as ubyte { ; TODO this goes via stack
ub++
}
repeat lsb(cnt) { ; TODO this doesnt
ub++
}
; TODO stack based evaluation for this function call even when it's inlined:
next_pixel((cnt as ubyte) + 30)
test_stack.test()
}
2020-12-26 01:25:52 +01:00
2020-12-29 22:53:53 +01:00
inline asmsub next_pixel(ubyte color @A) {
%asm {{
nop
}}
}
2020-08-27 19:47:50 +02:00
}