Mail Archives: djgpp/1998/02/02/19:48:24
BlueShade writes:
>I have been fooling around trying to write my own ModeX graphics
>library, but I can't get scrolling to work. Vertical is scrolling is
>pretty self-explanatory, but I can't figure out how to do horizontal.
Horizontal and vertical scrolling work in exactly the same way, just
using different offsets from the start of the video memory. Put the high
sixteen bits of the address into port 0x3D4 registers 0xC and 0xD, and
the low two bits into the pelpan register (port 0x3C0 register 0x33).
See the Allegro modex.c file for a working example, or one of the many
mode-X related documents on x2ftp.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -