2020-12-27 02:22:18 +01:00
|
|
|
%import test_stack
|
|
|
|
%import textio
|
2020-12-28 00:08:22 +01:00
|
|
|
%import floats
|
2020-12-23 00:54:11 +01:00
|
|
|
%zeropage basicsafe
|
2020-12-08 01:02:38 +01:00
|
|
|
%option no_sysinit
|
|
|
|
|
2020-12-08 22:54:20 +01:00
|
|
|
main {
|
2020-12-22 00:59:07 +01:00
|
|
|
|
2020-12-27 03:35:56 +01:00
|
|
|
|
2020-12-22 05:43:02 +01:00
|
|
|
sub start () {
|
2020-12-27 23:57:13 +01:00
|
|
|
|
2020-12-28 22:15:16 +01:00
|
|
|
; differences between:
|
|
|
|
; @(pp) = cnt as ubyte
|
|
|
|
; @(pp) = lsb(cnt)
|
|
|
|
; @(pp) = msb(cnt)
|
|
|
|
; repeat w as ubyte / repeat lsb(w)
|
|
|
|
|
|
|
|
; stack based evaluation for this function call even when it's inlined:
|
|
|
|
; gfx2.next_pixel((cnt as ubyte) + 30)
|
|
|
|
|
|
|
|
|
2020-12-28 00:19:58 +01:00
|
|
|
test_stack.test()
|
|
|
|
|
2020-12-03 18:39:32 +01:00
|
|
|
}
|
2020-12-26 01:25:52 +01:00
|
|
|
|
2020-12-27 18:12:12 +01:00
|
|
|
|
2020-08-27 19:47:50 +02:00
|
|
|
}
|