Added outline for SHR gfx coordinate conversion.

This commit is contained in:
Bobbi Webber-Manners 2022-12-28 19:45:11 -05:00
parent 333951321f
commit f83c7ee8f1

View File

@ -194,7 +194,7 @@ SHRXPLDCHAR PHA
RTS RTS
* Draw one pixel row of font in 320 mode * Explode one pixel row of font in 320 mode
* 4 bytes per char, 4 bits per pixel * 4 bytes per char, 4 bits per pixel
* On entry: A contains row of font data * On entry: A contains row of font data
SHRCHAR320 PHY ; Preserve Y SHRCHAR320 PHY ; Preserve Y
@ -226,7 +226,7 @@ SHRCHAR320 PHY ; Preserve Y
RTS RTS
* Draw one pixel row of font in 640 mode * Explode one pixel row of font in 640 mode
* 2 bytes per char, 2 bits per pixel * 2 bytes per char, 2 bits per pixel
* On entry: A contains row of font data * On entry: A contains row of font data
SHRCHAR640 PHY ; Preserve Y SHRCHAR640 PHY ; Preserve Y
@ -762,4 +762,13 @@ SHRPALCUSTOM PHA ; Preserve GB components
RTS RTS
* Convert high-resolution screen coordinates
* from 1280x1024 to 620x200 or 320x200
SHRCOORD
* X-coordinate in VDUQ+5,+6 1280/2=640, 1280/4=320
* Y-coordinate in VDUQ+7,+8 1024*3/16=192, 1024/128=8, 192+8=200
RTS