mirror of
https://github.com/irmen/prog8.git
synced 2024-08-22 03:29:07 +00:00
33 lines
502 B
Lua
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
|
|
|
|
}
|
|
}
|