2020-03-24 23:32:54 +00:00
|
|
|
%import c64lib
|
2020-03-14 23:47:21 +00:00
|
|
|
%import c64utils
|
2020-04-08 22:12:50 +00:00
|
|
|
%import c64flt
|
2020-04-03 20:44:10 +00:00
|
|
|
%zeropage basicsafe
|
2019-08-09 00:15:31 +00:00
|
|
|
|
2020-03-24 18:37:54 +00:00
|
|
|
|
2020-03-24 23:32:54 +00:00
|
|
|
main {
|
|
|
|
sub start() {
|
2020-06-03 23:43:37 +00:00
|
|
|
|
|
|
|
ubyte ubb
|
|
|
|
byte bb
|
|
|
|
uword uww
|
|
|
|
word ww
|
|
|
|
|
|
|
|
bb = -1
|
|
|
|
ww = -1
|
|
|
|
|
|
|
|
if bb<0
|
|
|
|
c64scr.print("1 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("1 fail\n")
|
|
|
|
|
|
|
|
if ww<0
|
|
|
|
c64scr.print("2 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("2 fail\n")
|
|
|
|
|
|
|
|
bb = 0
|
|
|
|
ww = 0
|
|
|
|
|
|
|
|
if bb>=0
|
|
|
|
c64scr.print("4 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("4 fail\n")
|
|
|
|
|
|
|
|
if ww>=0
|
|
|
|
c64scr.print("5 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("5 fail\n")
|
|
|
|
|
|
|
|
bb = 0
|
|
|
|
ww = 0
|
|
|
|
|
|
|
|
if bb>=0
|
|
|
|
c64scr.print("7 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("7 fail\n")
|
|
|
|
|
|
|
|
if ww>=0
|
|
|
|
c64scr.print("8 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("8 fail\n")
|
|
|
|
|
|
|
|
ubb = 0
|
|
|
|
uww = 0
|
|
|
|
if ubb>=0
|
|
|
|
c64scr.print("10 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("10 fail\n")
|
|
|
|
if uww>=0
|
|
|
|
c64scr.print("11 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("11 fail\n")
|
|
|
|
if ubb<0
|
|
|
|
c64scr.print("12 fail\n")
|
|
|
|
else
|
|
|
|
c64scr.print("12 ok\n")
|
|
|
|
if uww<0
|
|
|
|
c64scr.print("13 fail\n")
|
|
|
|
else
|
|
|
|
c64scr.print("13 ok\n")
|
|
|
|
ubb = $ff
|
|
|
|
uww = $ffff
|
|
|
|
if ubb>=0
|
|
|
|
c64scr.print("14 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("14 fail\n")
|
|
|
|
if uww>=0
|
|
|
|
c64scr.print("15 ok\n")
|
|
|
|
else
|
|
|
|
c64scr.print("15 fail\n")
|
|
|
|
if ubb<0
|
|
|
|
c64scr.print("16 fail\n")
|
|
|
|
else
|
|
|
|
c64scr.print("16 ok\n")
|
|
|
|
if uww<0
|
|
|
|
c64scr.print("17 fail\n")
|
|
|
|
else
|
|
|
|
c64scr.print("17 ok\n")
|
|
|
|
|
2020-03-13 01:05:15 +00:00
|
|
|
}
|
2020-03-21 17:39:36 +00:00
|
|
|
}
|
2020-03-24 21:02:50 +00:00
|
|
|
|
2020-03-24 23:32:54 +00:00
|
|
|
|