prog8/examples/test.p8
Irmen de Jong f8aaa2d13c explicit integer type check for @R0-R15 parameters
avoids weird type inconsistency for boolean parameters that would get aliased as unsigned byte instead invisibly
2024-12-10 23:19:41 +01:00

18 lines
240 B
Lua

%import textio
%zeropage basicsafe
%option no_sysinit
main {
sub func(bool flag @R1) {
if flag
return
}
extsub $2000 = extok(bool flag @R0)
sub start() {
func(true)
extok(true)
}
}