prog8/examples/test.p8

38 lines
556 B
Plaintext
Raw Normal View History

2021-04-30 20:30:21 +00:00
%import textio
%import diskio
2021-04-30 20:30:21 +00:00
%zeropage basicsafe
2021-04-08 00:13:02 +00:00
main {
sub start() {
txt.print(diskio.status(8))
txt.nl()
txt.print(diskio.status(9))
txt.nl()
; txt.print(diskio.status(10))
; txt.nl()
; txt.print(diskio.status(11))
; txt.nl()
2021-04-30 20:30:21 +00:00
uword x=22
x*=320
txt.print_uw(x)
txt.nl()
x=22
x*=640
txt.print_uw(x)
txt.nl()
ubyte a=1
ubyte b=22
x = (a*b)*640*a
txt.print_uw(x)
txt.nl()
2021-04-01 20:10:04 +00:00
}
}