prog8/examples/test.p8

46 lines
773 B
Plaintext
Raw Normal View History

%import string
%import textio
%option no_sysinit
%zeropage basicsafe
main {
2024-02-25 04:02:50 +00:00
sub start() {
2024-02-29 23:13:03 +00:00
ubyte[] envelope_attacks = [1,2,3,4]
if msb(cx16.r0) > cx16.r2L or envelope_attacks[cx16.r1L]==0 {
txt.print("yep")
}
;
; ubyte[] barray = [11,22,33]
; uword[] warray = [1111,2222,3333]
;
; if any(barray)
; cx16.r0++
;
;
; if barray[2] == 33
; cx16.r0++
; else
; cx16.r1++
;
; if warray[2] == 3333
; cx16.r0++
; else
; cx16.r1++
;
; if barray[cx16.r0L] == 33
; cx16.r0++
; else
; cx16.r1++
;
; if warray[cx16.r0L] == 3333
; cx16.r0++
; else
; cx16.r1++
2024-02-26 23:02:42 +00:00
}
2024-02-22 22:39:31 +00:00
}
2024-02-25 04:02:50 +00:00