46 lines
800 B
Plaintext
Raw Normal View History

%import c64utils
%option enable_floats
2018-10-16 02:26:35 +02:00
~ main {
2018-11-11 18:19:08 +01:00
sub start() {
2018-12-12 01:13:13 +01:00
ubyte ub1
2018-12-14 23:15:44 +01:00
ubyte ub2
byte b1 = -99
2018-12-14 23:15:44 +01:00
byte b2
2018-12-12 01:13:13 +01:00
uword uw1
2018-12-14 23:15:44 +01:00
uword uw2
word w1 = -9999
2018-12-14 23:15:44 +01:00
word w2
2018-12-12 01:13:13 +01:00
float f1
float f2
float f3
2018-12-12 01:13:13 +01:00
2018-12-16 03:38:17 +01:00
b2 = 99
w2 = -9999
ub2 = 100
uw2 = 40000
f2 = 3.141592654
c64.CHROUT('x')
c64scr.print_ubyte_decimal(X)
2018-12-14 23:15:44 +01:00
c64.CHROUT('\n')
2018-12-16 03:38:17 +01:00
f1 = deg(f2)
c64flt.print_float(f1)
2018-12-14 23:15:44 +01:00
c64.CHROUT('\n')
2018-12-16 03:38:17 +01:00
c64.CHROUT('x')
c64scr.print_ubyte_decimal(X)
2018-12-14 23:15:44 +01:00
c64.CHROUT('\n')
2018-12-16 03:38:17 +01:00
f1 = rad(f1)
c64flt.print_float(f1)
2018-12-14 23:15:44 +01:00
c64.CHROUT('\n')
2018-12-16 03:38:17 +01:00
c64.CHROUT('x')
c64scr.print_ubyte_decimal(X)
c64.CHROUT('\n')
}
}
2018-12-12 01:13:13 +01:00