Added documentation of static drivers.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5928 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc
2012-11-09 21:05:40 +00:00
parent 8e06d6d4f7
commit 1c92251a0e
4 changed files with 65 additions and 31 deletions

View File

@@ -152,6 +152,9 @@ chip registers.
<sect>Loadable drivers<p> <sect>Loadable drivers<p>
The names in the parentheses denote the symbols to be used for static linking of the drivers.
<sect1>Graphics drivers<p> <sect1>Graphics drivers<p>
<descrip> <descrip>

View File

@@ -187,44 +187,52 @@ structures, accessing the struct fields will access the chip registers.
<sect>Loadable drivers<p> <sect>Loadable drivers<p>
The names in the parentheses denote the symbols to be used for static linking of the drivers.
<sect1>Graphics drivers<p> <sect1>Graphics drivers<p>
A TGI driver for the standard graphics mode (160&times;102 in 16 colors) is <descrip>
available, but must be statically linked, because no file I/O is available.
The TGI driver is implemented as an interrupt driven dual buffering device. <tag><tt/lynx-160-102-16.tgi (lynx_160_102_16)/</tag>
To use it as a single-buffer device set draw page and view page to the same A TGI driver for the standard graphics mode (160&times;102 in 16 colors).
value 0 or 1;
The TGI driver has a few Lynx-specific extensions. The TGI driver is implemented as an interrupt driven dual buffering device.
To use it as a single-buffer device set draw page and view page to the same
value 0 or 1;
Calling tgi_sprite(spr) or tgi_ioctl(0, spr) will display a standard Lynx The TGI driver has a few Lynx-specific extensions.
sprite on screen.
Calling tgi_flip() or tgi_ioctl(1, 0) will do a flip screen. Calling tgi_sprite(spr) or tgi_ioctl(0, spr) will display a standard Lynx
sprite on screen.
Calling tgi_setbgcolor(bgcolor) or tgi_ioctl(2, bgindex) will set the text Calling tgi_flip() or tgi_ioctl(1, 0) will do a flip screen.
background color to the index defined by bgindex. If bgindex is 0 then the
background color is transparent.
To set the framerate of the display hardware call tgi_setframerate(rate) or Calling tgi_setbgcolor(bgcolor) or tgi_ioctl(2, bgindex) will set the text
tgi_ioctl(3, rate). The supported framerates are 50, 60 and 75 frames per background color to the index defined by bgindex. If bgindex is 0 then the
second. Actually there is no real reason to use anything else than 75 frames background color is transparent.
per second.
To check if the drawing engine is busy with the previous swap you can To set the framerate of the display hardware call tgi_setframerate(rate) or
call tgi_busy or tgi_ioctl(4, 0). It returns 0 if idle and 1 if busy tgi_ioctl(3, rate). The supported framerates are 50, 60 and 75 frames per
second. Actually there is no real reason to use anything else than 75 frames
per second.
To update displays you can call tgi_updatedisplay() or tgi_ioctl(4, 1) it To check if the drawing engine is busy with the previous swap you can
will wait for the next VBL interrupt and set the draw buffer to the call tgi_busy or tgi_ioctl(4, 0). It returns 0 if idle and 1 if busy
view buffer. The draw buffer is also changed to (drawbuffer xor 1).
You can also enable or disable collision detection by a call to To update displays you can call tgi_updatedisplay() or tgi_ioctl(4, 1) it
tgi_setcollisiondetection(active) or tgi_ioctl(5, active). The collision will wait for the next VBL interrupt and set the draw buffer to the
result is located before the sprite structure by default in this driver. view buffer. The draw buffer is also changed to (drawbuffer xor 1).
You can also enable or disable collision detection by a call to
tgi_setcollisiondetection(active) or tgi_ioctl(5, active). The collision
result is located before the sprite structure by default in this driver.
In order to reserve memory for the collision detection buffer you need to
specify lynx-coll.cfg as the configuration file to the linker.
</descrip><p>
In order to reserve memory for the collision detection buffer you need to
specify lynx-coll.cfg as the configuration file to the linker.
<sect1>Extended memory drivers<p> <sect1>Extended memory drivers<p>
@@ -233,8 +241,13 @@ No extended memory drivers are currently available for the Lynx.
<sect1>Joystick drivers<p> <sect1>Joystick drivers<p>
A joystick driver for the standard buttons is available, but must be <descrip>
statically linked, because no file I/O is available.
<tag><tt/lynx-stdjoy.joy (lynx_stdjoy)/</tag>
A joystick driver for the standard buttons.
</descrip><p>
<sect1>Mouse drivers<p> <sect1>Mouse drivers<p>
@@ -245,6 +258,9 @@ No mouse drivers are currently available for the Lynx.
<descrip> <descrip>
<tag><tt/lynx-comlynx.ser (lynx_comlynx)/</tag>
A serial driver for the ComLynx port.
The ComLynx port has Tx and Rx wired together. Every byte is sent The ComLynx port has Tx and Rx wired together. Every byte is sent
to all connected Lynxes. Only one Lynx can send at a time. There is no to all connected Lynxes. Only one Lynx can send at a time. There is no
protocol created for communication. You are on your own. protocol created for communication. You are on your own.

View File

@@ -94,17 +94,20 @@ allow access to hardware located in the address space.
<sect>Loadable drivers<p> <sect>Loadable drivers<p>
All drivers must be statically linked because no file I/O is available. All drivers must be statically linked because no file I/O is available.
The names in the parentheses denote the symbols to be used for static linking of the drivers.
<sect1>Graphics drivers<p> <sect1>Graphics drivers<p>
<descrip> <descrip>
<tag><tt/nes-64-56-2.tgi/</tag> <tag><tt/nes-64-56-2.tgi (nes_64_56_2)/</tag>
This driver features a resolution of 64&times;56 with 2 colors using the This driver features a resolution of 64&times;56 with 2 colors using the
CHR bank. CHR bank.
</descrip><p> </descrip><p>
<sect1>Extended memory drivers<p> <sect1>Extended memory drivers<p>
No extended memory drivers are currently available for the NES. No extended memory drivers are currently available for the NES.
@@ -112,7 +115,13 @@ No extended memory drivers are currently available for the NES.
<sect1>Joystick drivers<p> <sect1>Joystick drivers<p>
A joystick driver for the standard four buttons joypad is available. <descrip>
<tag><tt/nes-stdjoy.joy (nes_stdjoy)/</tag>
A joystick driver for the standard four buttons joypad is available.
</descrip><p>
<sect1>Mouse drivers<p> <sect1>Mouse drivers<p>

View File

@@ -133,6 +133,9 @@ structures, accessing the struct fields will access the chip registers.
<sect>Loadable drivers<p> <sect>Loadable drivers<p>
The names in the parentheses denote the symbols to be used for static linking of the drivers.
<sect1>Graphics drivers<p> <sect1>Graphics drivers<p>
No graphics drivers are currently available for the PET. No graphics drivers are currently available for the PET.
@@ -147,12 +150,15 @@ No extended memory drivers are currently available for the PET.
<descrip> <descrip>
<tag><tt/pet-ptvjoy.joy/</tag> <tag><tt/pet-ptvjoy.joy (pet_ptvjoy)/</tag>
Driver for the Protovision 4-player adapter contributed by Groepaz. See Driver for the Protovision 4-player adapter contributed by Groepaz. See
<htmlurl url="http://www.protovision-online.de/hardw/hardwstart.htm" <htmlurl url="http://www.protovision-online.de/hardw/hardwstart.htm"
name="http://www.protovision-online.de/hardw/hardwstart.htm"> for prices and name="http://www.protovision-online.de/hardw/hardwstart.htm"> for prices and
building instructions. Up to two joysticks are supported. building instructions. Up to two joysticks are supported.
<tag><tt/pet-stdjoy.joy (pet_stdjoy)/</tag>
Driver for the standard PET userport joystick.
</descrip><p> </descrip><p>