8 move.l #def_reg_tab, %a0
14 move.w %d0, VDP_CTL_PORT | VDP_CTL = 0x8000 | (reg << 8) | val
16 cmp.w def_reg_tab_size, %d1
25 0: move.w %d0, VDP_DATA_PORT
31 | address in d0, type in d1
37 move.l %d0, VDP_CTL_PORT
42 move.l 4(%sp), %d0 | palette number
44 add.l 8(%sp), %d0 | add index
48 move.w 22(%sp), %d0 | blue
50 or.w 18(%sp), %d0 | green
52 or.w 14(%sp), %d0 | red
54 move.w %d0, VDP_DATA_PORT
59 .byte VDP_M1_INIT | 0: mode 1
60 .byte VDP_M2_INIT + VDP_M2_DISP | 1: mode 2
61 .byte VDP_NA_ADDR(0xc000) | 2: scroll A nametable addr.
62 .byte VDP_NW_ADDR(VDP_ADDR_INVAL) | 3: window nametable addr.
63 .byte VDP_NB_ADDR(0xd000) | 4: scroll B nametable addr.
64 .byte VDP_SPRTAB_ADDR(0xe000) | 5: sprite table addr.
68 .byte 0 | 10: horiz. interrupt interval
70 .byte VDP_M4_H40 | 12: mode 4
71 .byte 0 | 13: hscroll table addr.
73 .byte 2 | 15: autoincrement 2 bytes
74 .byte VDP_SCR_H64 | 16: scroll size (64x32)
75 .byte 0, 0 | 17,18: win x/y pos
76 .byte 0, 0, 0, 0, 0 | 19-23: DMA regs
80 .word def_reg_tab_end - def_reg_tab