1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-06-13 14:29:29 +00:00
millfork/examples/a8/dli_example.mfk

27 lines
433 B
Plaintext
Raw Normal View History

2020-09-06 23:29:53 +00:00
const word dlAddr = $3000
const word dliAddr = $3100
const array(byte) dl @ dlAddr = [
BLANK_8,BLANK_8,BLANK_8,
LMS|MODE_2,$00,$40,
MODE_2,MODE_2,MODE_2,MODE_2,
BLANK_8|DLI,
MODE_2,MODE_2,MODE_2,MODE_2,
JVB,@word[dlAddr]
2020-09-06 23:29:53 +00:00
]
2020-09-07 22:17:10 +00:00
volatile word SDLST @ $230
2020-09-06 23:29:53 +00:00
interrupt void dli() @ dliAddr {
gtia_colpf2 = $de
antic_wsync = 1
}
void main() {
SDLST = dl.addr
os_VDSLST = dli.addr
antic_nmien = $c0
while true {}
}