1 .macro vdp_setreg reg val
2 move.w #(0x8000 + ((\reg) << 8) + (\val)), VDP_CTL_PORT
5 .macro vdp_setreg_reg vdpreg valreg
7 or.w #(0x8000 + ((\vdpreg) << 8)), \valreg
8 move.w \valreg, VDP_CTL_PORT
11 .macro vdp_setup_addr type addr
12 move.l #((\type) + (((\addr) & 0x3fff) << 16) + (((\addr) >> 14) & 3)), VDP_CTL_PORT
15 .macro vdp_setup_addr_reg type addr
20 move.l \addr, VDP_CTL_PORT