mirror of
https://github.com/irmen/prog8.git
synced 2024-11-27 03:50:27 +00:00
37 lines
603 B
Lua
37 lines
603 B
Lua
%import textio
|
|
%import floats
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
uword zz
|
|
word zz2
|
|
ubyte bb
|
|
byte bb2
|
|
|
|
bb2 |= bb
|
|
bb2 |= zz2
|
|
|
|
; uword[20] @split foobar
|
|
; ubyte[20] @split foobar2
|
|
;
|
|
; sys.push(11)
|
|
; sys.pushw(2222)
|
|
; floats.push(floats.π)
|
|
; cx16.r2++
|
|
;
|
|
; float pi = floats.pop()
|
|
; floats.print_f(pi)
|
|
; txt.nl()
|
|
;
|
|
; cx16.r1 = sys.popw()
|
|
; cx16.r0L = sys.pop()
|
|
;
|
|
; txt.print_ub(cx16.r0L)
|
|
; txt.nl()
|
|
; txt.print_uw(cx16.r1)
|
|
; txt.nl()
|
|
|
|
}
|
|
}
|