mirror of
https://github.com/bobbimanners/Applecorn.git
synced 2024-09-25 18:54:34 +00:00
Added outline for SHR gfx coordinate conversion.
This commit is contained in:
parent
333951321f
commit
f83c7ee8f1
13
auxmem.shr.s
13
auxmem.shr.s
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user