; Written in 2019 by Rob McMullen, https://playermissile.com/dli_tutorial/ ; Copyright and related rights waived via CC0: https://creativecommons.org/publicdomain/zero/1.0/ *= $3000 .include "hardware.s" init ; load display list & fill with test data jsr init_static_screen_mode4 ; add DLI bit to two lines lda #$84 sta dlist_static_mode4 + 10 sta dlist_static_mode4 + 20 ; load display list interrupt address ldx #>dli ldy #vbi ldy #dli sta VDSLST+1 jmp XITVBV ; always exit deferred VBI with jump here ; tell DOS where to run the program when loaded * = $2e0 .word init