2018-12-11 23:15:05 +00:00
|
|
|
%import c64utils
|
2018-12-13 00:19:43 +00:00
|
|
|
%option enable_floats
|
2018-10-16 00:26:35 +00:00
|
|
|
|
2018-12-04 21:30:35 +00:00
|
|
|
~ main {
|
2018-11-11 17:19:08 +00:00
|
|
|
|
2018-12-04 21:30:35 +00:00
|
|
|
sub start() {
|
2018-12-12 00:13:13 +00:00
|
|
|
|
|
|
|
ubyte ub1
|
2018-12-14 22:15:44 +00:00
|
|
|
ubyte ub2
|
2018-12-14 23:07:25 +00:00
|
|
|
byte b1 = -99
|
2018-12-14 22:15:44 +00:00
|
|
|
byte b2
|
2018-12-12 00:13:13 +00:00
|
|
|
uword uw1
|
2018-12-14 22:15:44 +00:00
|
|
|
uword uw2
|
2018-12-14 23:07:25 +00:00
|
|
|
word w1 = -9999
|
2018-12-14 22:15:44 +00:00
|
|
|
word w2
|
2018-12-12 00:13:13 +00:00
|
|
|
float f1
|
2018-12-13 00:19:43 +00:00
|
|
|
float f2
|
|
|
|
float f3
|
2018-12-12 00:13:13 +00:00
|
|
|
|
2018-12-14 23:07:25 +00:00
|
|
|
c64scr.print_byte_decimal(-99)
|
2018-12-14 22:15:44 +00:00
|
|
|
c64.CHROUT('\n')
|
2018-12-14 23:07:25 +00:00
|
|
|
c64scr.print_byte_decimal(b1)
|
2018-12-14 22:15:44 +00:00
|
|
|
c64.CHROUT('\n')
|
2018-12-14 23:07:25 +00:00
|
|
|
c64scr.print_word_decimal(-9999)
|
2018-12-14 22:15:44 +00:00
|
|
|
c64.CHROUT('\n')
|
2018-12-14 23:07:25 +00:00
|
|
|
c64scr.print_word_decimal(w1)
|
2018-12-14 22:15:44 +00:00
|
|
|
c64.CHROUT('\n')
|
2018-12-04 21:30:35 +00:00
|
|
|
}
|
2018-10-16 20:49:19 +00:00
|
|
|
}
|
2018-12-12 00:13:13 +00:00
|
|
|
|