mirror of
https://github.com/irmen/prog8.git
synced 2025-01-11 13:29:45 +00:00
38 lines
799 B
Lua
38 lines
799 B
Lua
%import textio
|
|
%import floats
|
|
%zeropage basicsafe
|
|
%option no_sysinit
|
|
|
|
main {
|
|
sub start() {
|
|
ubyte @shared xx
|
|
uword[3] ubarr
|
|
bool[3] barr
|
|
float[3] flarr
|
|
bool @shared bb
|
|
|
|
ubarr[1] = ubarr[1] < 2
|
|
ubarr[1] = ubarr[1] <= 2
|
|
ubarr[1] = ubarr[1] > 3
|
|
ubarr[1] = ubarr[1] >= 3
|
|
|
|
; barr[1] = barr[0] and barr[2]
|
|
; barr[1] = barr[0] or barr[2]
|
|
; barr[1] = barr[0] xor barr[2]
|
|
; barr[1] = not barr[0]
|
|
|
|
; ubarr[1] = 999
|
|
; ubarr[1] = ubarr[1]==999
|
|
; txt.print_uw(ubarr[1])
|
|
|
|
; barr[1] = barr[1] and bb
|
|
; barr[1] = barr[1] or bb
|
|
; barr[1] = barr[1] xor bb
|
|
|
|
; bb = bb and barr[1]
|
|
; bb = bb or barr[1]
|
|
; bb = bb xor barr[1]
|
|
; bb = not bb
|
|
}
|
|
}
|