2023-12-09 20:48:22 +00:00
|
|
|
%import textio
|
2023-12-12 23:53:01 +00:00
|
|
|
%import string
|
2023-12-09 20:48:22 +00:00
|
|
|
%zeropage basicsafe
|
|
|
|
|
2023-10-15 20:44:34 +00:00
|
|
|
main {
|
2023-11-12 19:40:17 +00:00
|
|
|
sub start() {
|
2023-12-12 23:53:01 +00:00
|
|
|
bool @shared blerp = test(100)
|
|
|
|
|
|
|
|
if test(100)
|
|
|
|
goto skip
|
|
|
|
txt.print("no0")
|
|
|
|
|
|
|
|
skip:
|
|
|
|
if test(100) {
|
|
|
|
txt.print("yes1")
|
|
|
|
goto skip2
|
|
|
|
}
|
|
|
|
txt.print("no1")
|
|
|
|
|
|
|
|
skip2:
|
|
|
|
if test(100)
|
|
|
|
txt.print("yes2")
|
|
|
|
else
|
|
|
|
txt.print("no2")
|
|
|
|
|
|
|
|
|
|
|
|
while test(100) {
|
|
|
|
cx16.r0++
|
|
|
|
}
|
|
|
|
|
|
|
|
do {
|
|
|
|
cx16.r0++
|
|
|
|
} until test(100)
|
|
|
|
}
|
|
|
|
|
|
|
|
asmsub test(ubyte value @A) -> bool @Pz {
|
|
|
|
%asm {{
|
|
|
|
lda #0
|
|
|
|
rts
|
|
|
|
}}
|
2023-11-14 17:23:37 +00:00
|
|
|
}
|
2023-10-03 20:54:28 +00:00
|
|
|
}
|