mirror of
https://github.com/irmen/prog8.git
synced 2024-05-29 01:41:32 +00:00
21 lines
355 B
Lua
21 lines
355 B
Lua
%zeropage basicsafe
|
|
%import textio
|
|
|
|
main {
|
|
sub start() {
|
|
uword @shared a,b
|
|
b = a ; works
|
|
cx16.r1L = lsb(a) ; works
|
|
funcw(a) ; works
|
|
funcb(lsb(a)) ; fails :-(
|
|
}
|
|
|
|
sub funcw(uword arg) {
|
|
arg++
|
|
}
|
|
|
|
sub funcb(ubyte arg) {
|
|
arg++
|
|
}
|
|
}
|