mirror of
https://github.com/irmen/prog8.git
synced 2024-09-11 00:54:31 +00:00
17 lines
486 B
Lua
17 lines
486 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte value = 1
|
|
uword wvalue = 1
|
|
ubyte zero = 0
|
|
txt.print_ub(value<<zero) ; TODO fix result 6502 codegen! should be 1.
|
|
txt.print_uw(wvalue<<zero) ; TODO fix result 6502 codegen! should be 1.
|
|
ubyte value2 = value<<zero ; result is ok, 1
|
|
uword wvalue2 = wvalue<<zero ; result is ok, 1
|
|
txt.print_ub(value2)
|
|
txt.print_uw(wvalue2)
|
|
}
|
|
}
|