2020-09-19 20:10:33 +00:00
|
|
|
;%import c64lib
|
|
|
|
;%import c64graphics
|
2020-09-19 21:00:47 +00:00
|
|
|
;%import c64textio
|
2020-09-19 23:14:53 +00:00
|
|
|
%import c64flt
|
2020-09-06 15:58:05 +00:00
|
|
|
;%option enable_floats
|
2020-09-19 20:37:24 +00:00
|
|
|
%target cx16
|
|
|
|
%import cx16textio
|
2020-09-16 21:04:18 +00:00
|
|
|
%zeropage basicsafe
|
2020-09-05 00:05:28 +00:00
|
|
|
|
2020-08-27 17:47:50 +00:00
|
|
|
|
|
|
|
main {
|
2020-09-05 00:05:28 +00:00
|
|
|
|
2020-09-16 21:04:18 +00:00
|
|
|
sub start() {
|
2020-09-19 14:54:52 +00:00
|
|
|
|
2020-09-19 23:14:53 +00:00
|
|
|
const ubyte cbvalue = 40
|
|
|
|
const uword cwvalue = cbvalue
|
|
|
|
uword wvalue = 40
|
2020-09-19 22:17:33 +00:00
|
|
|
|
2020-09-19 23:14:53 +00:00
|
|
|
ubyte x
|
|
|
|
ubyte bb = 99
|
|
|
|
x = msb(sin8u(bb) * cwvalue)
|
|
|
|
txt.print_ub(x)
|
2020-09-19 21:00:47 +00:00
|
|
|
txt.chrout('\n')
|
2020-09-19 23:14:53 +00:00
|
|
|
x = msb(sin8u(bb) * wvalue)
|
|
|
|
txt.print_ub(x)
|
2020-09-19 22:17:33 +00:00
|
|
|
txt.chrout('\n')
|
2020-09-19 21:00:47 +00:00
|
|
|
txt.chrout('\n')
|
2020-09-19 14:54:52 +00:00
|
|
|
|
2020-09-19 23:14:53 +00:00
|
|
|
x = msb(cwvalue*sin8u(bb))
|
|
|
|
txt.print_ub(x)
|
2020-09-19 22:17:33 +00:00
|
|
|
txt.chrout('\n')
|
2020-09-19 23:14:53 +00:00
|
|
|
x = msb(wvalue*sin8u(bb))
|
|
|
|
txt.print_ub(x)
|
2020-09-19 22:17:33 +00:00
|
|
|
txt.chrout('\n')
|
2020-09-16 21:04:18 +00:00
|
|
|
}
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|