prog8/examples/test.p8
2020-09-22 21:50:56 +02:00

33 lines
502 B
Lua

%import syslib
; %import graphics
%import textio
%zeropage basicsafe
main {
sub start() {
ubyte v = 1
@($c000+v) = 10
txt.print_ub(@($c001))
txt.chrout('\n')
@($c000+v) ++
txt.print_ub(@($c001))
txt.chrout('\n')
@($c000+v) += 10
txt.print_ub(@($c001))
txt.chrout('\n')
@($c000+v) *= 10
txt.print_ub(@($c001))
txt.chrout('\n')
; @($c000) *= 99 ; TODO implement
}
}