mirror of
https://github.com/irmen/prog8.git
synced 2024-10-31 09:08:02 +00:00
43 lines
691 B
Lua
43 lines
691 B
Lua
%import c64flt
|
|
%zeropage basicsafe
|
|
%option enable_floats
|
|
|
|
~ main {
|
|
|
|
sub start() {
|
|
|
|
;
|
|
; float f1 = 1.1
|
|
; float f2 = 2.2
|
|
;
|
|
; @(1024) = f1==f2
|
|
;
|
|
; c64.CHROUT('\n')
|
|
; c64scr.print_ub(f1==f2)
|
|
; c64.CHROUT('\n')
|
|
;
|
|
; if f1 ==0.0
|
|
; c64scr.print("error\n")
|
|
; else
|
|
; c64scr.print("ok\n")
|
|
|
|
str s1 = "hello"
|
|
str s2 = "hello"
|
|
str s3 = "hello"
|
|
str s4 = "hello"
|
|
|
|
if true {
|
|
ubyte ub1 = 33
|
|
A=ub1
|
|
c64scr.print("irmen")
|
|
}
|
|
|
|
if true {
|
|
ubyte ub1 = 33
|
|
A=ub1
|
|
c64scr.print("irmen")
|
|
}
|
|
|
|
}
|
|
}
|