Advertisement
TheFastFish

VDP control

Dec 28th, 2015
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. VDPVRAMRead:
  2. ;get address pieces
  3.     moveq 0, d1
  4.     moveq 0, d2
  5.     moveq 0, d3
  6.     move.w d0, d1
  7.     move.w d0, d2
  8.     andi.w #$A000, d1
  9.     lsr.w #$D, d1
  10.     andi.w #$FFFA, d2
  11.     lsr.w #$2, d2
  12. ;put em together; we're using VRAM read here, which is just 0
  13.     swap d2
  14.     or.l d2, d3
  15.     or.l d1, d3
  16. ;write d3 to VDP control register
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement