9 move.l #def_reg_tab, %a0
15 move.w %d0, VDP_CTL_PORT | VDP_CTL = 0x8000 | (reg << 8) | val
17 cmp.w def_reg_tab_size, %d1
26 0: move.w %d0, VDP_DATA_PORT
32 | address in d0, type in d1
38 move.l %d0, VDP_CTL_PORT
43 move.l 4(%sp), %d0 | palette number
45 add.l 8(%sp), %d0 | add index
49 move.w 22(%sp), %d0 | blue
51 or.w 18(%sp), %d0 | green
53 or.w 14(%sp), %d0 | red
55 move.w %d0, VDP_DATA_PORT
60 .byte VDP_M1_INIT | 0: mode 1
61 .byte VDP_M2_INIT + VDP_M2_DISP | 1: mode 2
62 .byte VDP_NA_ADDR(0xc000) | 2: scroll A nametable addr.
63 .byte VDP_NW_ADDR(VDP_ADDR_INVAL) | 3: window nametable addr.
64 .byte VDP_NB_ADDR(0xd000) | 4: scroll B nametable addr.
65 .byte VDP_SPRTAB_ADDR(0xe000) | 5: sprite table addr.
69 .byte 0 | 10: horiz. interrupt interval
71 .byte VDP_M4_H40 | 12: mode 4
72 .byte 0 | 13: hscroll table addr.
74 .byte 2 | 15: autoincrement 2 bytes
75 .byte VDP_SCR_H64 | 16: scroll size (64x32)
76 .byte 0, 0 | 17,18: win x/y pos
77 .byte 0, 0, 0, 0, 0 | 19-23: DMA regs
81 .word def_reg_tab_end - def_reg_tab