prog8/examples/test.p8

37 lines
684 B
Plaintext
Raw Normal View History

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