prog8/examples/test.p8

26 lines
360 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
%option no_sysinit
main {
bool @shared var1, var2
bool[2] barray = [false, true]
ubyte success
sub start() {
no_else()
}
2024-03-12 22:27:15 +00:00
sub no_else() {
txt.print("bool no_else: ")
success=0
2024-03-12 22:27:15 +00:00
var1=true
var2=false
if var1!=var2
txt.print("yes")
2024-03-01 18:45:16 +00:00
}
}