mirror of
https://github.com/irmen/prog8.git
synced 2024-11-02 07:05:14 +00:00
21 lines
428 B
Lua
21 lines
428 B
Lua
%import textio
|
|
%import floats
|
|
%zeropage basicsafe
|
|
%import test_stack
|
|
|
|
main {
|
|
sub start() {
|
|
uword uw
|
|
ubyte ub1
|
|
ubyte ub2
|
|
|
|
uw = ub1 as uword + ub2 ; fairly ok asm (TODO make it use stz on cx16)
|
|
ub1++
|
|
uw = ub1 + ub2 ; TODO horrible asm using the eval stack... fix
|
|
|
|
uw *= 8 ; TODO is using a loop... unroll somewhat
|
|
|
|
txt.print("hello\n")
|
|
}
|
|
}
|