prog8/examples/test.p8

32 lines
583 B
Plaintext
Raw Normal View History

%zeropage basicsafe
2020-07-26 22:32:59 +00:00
main {
2020-07-26 21:32:20 +00:00
sub start() {
uword xx = $ef34
xx &= $00f0
screen.print_uwhex(xx, 1)
cx16.CHROUT('\n')
xx |= $000f
screen.print_uwhex(xx, 1)
cx16.CHROUT('\n')
xx ^= $0011
screen.print_uwhex(xx, 1)
cx16.CHROUT('\n')
xx = $ef34
xx &= $f000
screen.print_uwhex(xx, 1)
cx16.CHROUT('\n')
xx |= $0f00
screen.print_uwhex(xx, 1)
cx16.CHROUT('\n')
xx ^= $1100
screen.print_uwhex(xx, 1)
cx16.CHROUT('\n')
2020-08-23 22:26:26 +00:00
}
}
2020-08-24 21:18:46 +00:00