prog8/examples/test.p8

27 lines
438 B
Plaintext
Raw Normal View History

2020-03-24 23:32:54 +00:00
%import c64lib
%import c64utils
2020-03-24 23:32:54 +00:00
%zeropage basicsafe
2019-08-09 00:15:31 +00:00
2020-03-24 23:32:54 +00:00
main {
uword[2] array1 = 1
2020-03-24 23:32:54 +00:00
sub start() {
uword addr = $c000
&uword addr2 = $c100
2020-03-24 23:32:54 +00:00
; not sure if these are okay:
addr2 = 0
addr2 |= 128
addr2 += 1
2020-03-24 23:32:54 +00:00
@(addr) = 0
@(addr) |= 128 ; TODO FIX result of memory-OR/XOR and probably AND as well
@(addr) += 1 ; TODO fix result of memory += 1
}
2020-03-21 17:39:36 +00:00
}
2020-03-24 23:32:54 +00:00