2019-08-07 00:02:34 +00:00
|
|
|
%import c64lib
|
2019-08-10 12:20:42 +00:00
|
|
|
%import c64utils
|
2019-08-18 14:39:08 +00:00
|
|
|
%import c64flt
|
2019-08-17 23:39:48 +00:00
|
|
|
%zeropage basicsafe
|
2019-08-09 00:15:31 +00:00
|
|
|
|
2019-08-18 14:39:08 +00:00
|
|
|
|
2019-08-07 00:02:34 +00:00
|
|
|
main {
|
2019-08-05 21:36:24 +00:00
|
|
|
|
|
|
|
sub start() {
|
2019-08-17 13:28:06 +00:00
|
|
|
|
2019-08-18 14:39:08 +00:00
|
|
|
byte bb
|
|
|
|
word ww
|
|
|
|
float fl
|
|
|
|
bb=-1
|
|
|
|
c64scr.print_b(sgn(bb))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
bb=0
|
|
|
|
c64scr.print_b(sgn(bb))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
bb=1
|
|
|
|
c64scr.print_b(sgn(bb))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
ww=-1
|
|
|
|
c64scr.print_b(sgn(ww))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
ww=0
|
|
|
|
c64scr.print_b(sgn(ww))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
ww=1
|
|
|
|
c64scr.print_b(sgn(ww))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
fl=-1.1
|
|
|
|
c64scr.print_b(sgn(fl))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
fl=0.0
|
|
|
|
c64scr.print_b(sgn(fl))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
fl=1.0
|
|
|
|
c64scr.print_b(sgn(fl))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64.CHROUT('\n')
|
2019-08-15 21:52:52 +00:00
|
|
|
}
|
2019-08-18 14:39:08 +00:00
|
|
|
|
2019-04-11 22:04:15 +00:00
|
|
|
}
|