prog8/compiler/examples/test.p8

24 lines
287 B
Plaintext
Raw Normal View History

%option enable_floats
2018-08-16 21:10:28 +00:00
2018-10-02 22:25:04 +00:00
2018-09-15 22:59:12 +00:00
~ main {
2018-10-01 20:23:16 +00:00
sub start() {
2018-10-05 15:44:29 +00:00
const byte b1 = 20//7
const word w1 = 20//7
const float f1 = 20/7
2018-10-01 23:52:08 +00:00
2018-10-05 15:44:29 +00:00
_vm_write_num(b1)
_vm_write_char('\n')
_vm_write_num(w1)
_vm_write_char('\n')
_vm_write_num(f1)
_vm_write_char('\n')
return
}
2018-10-04 18:47:52 +00:00
}