mirror of
https://github.com/irmen/prog8.git
synced 2025-02-16 22:30:46 +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
|
|
|
|
}
|
|
}
|