2019-07-15 01:57:51 +00:00
|
|
|
%import c64flt
|
2019-07-01 21:41:30 +00:00
|
|
|
%zeropage basicsafe
|
2019-07-15 01:57:51 +00:00
|
|
|
%option enable_floats
|
2019-03-29 01:13:28 +00:00
|
|
|
|
2019-03-19 00:22:26 +00:00
|
|
|
~ main {
|
2019-04-21 01:04:13 +00:00
|
|
|
|
2019-07-15 21:05:04 +00:00
|
|
|
sub start() {
|
2019-07-16 21:34:43 +00:00
|
|
|
|
2019-07-27 15:55:14 +00:00
|
|
|
float f1 = 1.1
|
|
|
|
float f2 = 2.2
|
2019-07-17 23:31:12 +00:00
|
|
|
|
2019-07-27 15:55:14 +00:00
|
|
|
@(1024) = f1==f2
|
2019-07-22 16:58:55 +00:00
|
|
|
|
|
|
|
c64.CHROUT('\n')
|
2019-07-27 15:55:14 +00:00
|
|
|
c64scr.print_ub(f1==f2)
|
2019-07-22 16:58:55 +00:00
|
|
|
c64.CHROUT('\n')
|
|
|
|
|
2019-07-27 15:55:14 +00:00
|
|
|
if f1 ==0.0
|
|
|
|
c64scr.print("error\n")
|
|
|
|
else
|
|
|
|
c64scr.print("ok\n")
|
2019-07-22 16:58:55 +00:00
|
|
|
}
|
2019-04-11 22:04:15 +00:00
|
|
|
}
|