Guest User

Untitled

a guest
Dec 14th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1.  
  2. 2115 wb++?- VMAINC - Video Port Control
  3.  
  4. "Video Memory Address Increment"
  5.  
  6. i---mmjj
  7.  
  8. i = Address increment mode:
  9. 0 => increment after writing $2118/reading $2139
  10. 1 => increment after writing $2119/reading $213a
  11. Note that a word write stores low first, then high. Thus, if you're
  12. storing a word value to $2118/9, you'll probably want to set 1
  13. here.
  14.  
  15. j = Address increment amount
  16. 00 = Normal increment by 1
  17.  
  18. 01 = Increment by 32
  19.  
  20. Useful for reading / writing a normal tilemap
  21. when one would like to have the target address
  22. move to the next row upon increment.
  23.  
  24. 10 = Increment by 128
  25.  
  26. Useful for reading / writing a mode 7 tilemap
  27. when one would like to have the target address
  28. move to the next row upon increment.
  29.  
  30. 11 = Increment by 128
  31.  
  32. (Note: Same as address increment amount '10' above)
  33.  
  34. m = Address remapping
  35. 00 = No remapping
  36.  
  37. # 0x00, 0x01, 0x02, 0x03, ..., 0x1F => 0x00, 0x08, 0x10, 0x18, ..., 0xF8
  38. # 0x20, 0x21, 0x22, 0x23, ..., 0x3F => 0x01, 0x09, 0x11, 0x19, ..., 0xF9
  39. 01 = Remap addressing aaaaaaaa BBBccccc => aaaaaaaa cccccBBB
  40.  
  41. # 0x00, 0x01, 0x02, 0x03, ..., 0x3F => 0x00, 0x08, 0x10, 0x18, ..., 0x1F8
  42. # 0x40, 0x41, 0x42, 0x43, ..., 0x7F => 0x01, 0x09, 0x11, 0x19, ..., 0x1F9
  43. 10 = Remap addressing aaaaaaaB BBcccccc => aaaaaaac cccccBBB
  44.  
  45. # 0x00, 0x01, 0x02, 0x03, ..., 0x7F => 0x00, 0x08, 0x10, 0x18, ..., 0x3F8
  46. # 0x80, 0x81, 0x82, 0x83, ..., 0xFF => 0x00, 0x09, 0x11, 0x19, ..., 0x3F9
  47. 11 = Remap addressing aaaaaaBB Bccccccc => aaaaaacc cccccBBB
  48.  
  49. The "remap" modes basically implement address translation. If
  50. $2116/7 are set to #$0003, then word address #$0018 will be written
  51. instead, and $2116/7 will be incremented to $0004.
Add Comment
Please, Sign In to add comment