Previous page Contents Next page
PC Card devices

6.6 Video

The PC display depends on the capabilities of the host computer. The PC card cannot display more colours than the host hardware. It can display bigger modes than the host, but only in a window in multi-tasking mode. Under Windows the PC card can display any mode the host can display, using the Aleph One Windows driver supplied
(see Installing the Aleph One Windows driver on page 39). 

There is a certain amount of complexity in the translation of PC video modes to RISC OS video modes. Most of the time you need not concern yourself with this, but for some software you may need to refer to this section to determine the capabilities of the PC Card/host combination.

Supported modes

Under DOS the standard VGA modes (including EGA and CGA) are supported, plus one SVGA mode and a couple of others. A list of all the supported modes is given below. 

Mode 27 is used for VGA: 640 X 480 X 16 graphics display in DOS. 

Mode 31 is used for SVGA 800 X 600 X 16 graphics display in DOS. (DOS mode 6Ah). The standard DOS text screen (80 X 25) is actually 640 X 400 pixels. There is no such mode under RISC OS so 640 X 480 is used instead. This results in 40 unused pixels at the top and bottom of the display, making it a bit more `letterboxy' than a typical PC display. 

  • Note that the default definitions of modes 27 and 31 for the AKF60 monitor give a slow refresh rate (60Hz) and thus a flickery display. We recommend that you edit the monitor definition file to comment out the slow 640 X 480 and 800 X 600 modes. Contact Aleph One if your are unsure about this.

Matching modes

!PC does it best to match DOS modes to RISC OS modes, but is limited to the modes that can be displayed under RISCOS 3.1. If the host is a Risc PC, then !PC has more flexibility as the set of available modes is not fixed by the operating system, but contained in a monitor definition file which is read at boot time. It is possible to add modes to this file if you know the abilities of your monitor and the file format. You will need a copy of the Acorn application !Makemodes, available from Acorn. 

If a mode !PC doesn’t know how to handle is selected, it will always check with RISC OS to see if such a mode can be displayed. If the mode cannot be displayed then !PC reverts to multitasking, and displays the mode in a window of the correct size. 
 

Games under DOS

DOS games often select odd-shaped modes, thus causing problems with !PC. If you find that a game reverts to multi-tasking and you have a Risc PC:
  1. Use the Save sprite feature (see Switching between PC Card modes on page 32) to save a copy of the screen.
  2. Load this into !Paint to find the size and colour depth of the screen.
  3. Create a suitably shaped mode to enable you to use the software in single-tasking mode.

'Auto' monitortype

If your monitor type is set to Auto then the PC card software cannot tell what modes it can single-task in. So if WinDrvMode is set to 31, and you are not already in mode 31, it will revert to multi-tasking. 

To stop this happening, change your monitortype to reflect the actual type of your monitor. 
 

Standard DOS modes

Mode 0 (CGA/EGA/VGA) 40 X 25 text
Mode 1 (CGA/EGA/VGA) 40 X 25 text
Mode 2 (CGA/EGA/VGA)  80 X 25 text
Mode 3 (CGA/EGA/VGA) 80 X 25 text
Mode 4 (CGA/EGA/VGA) 320 X 200 4-colour graphics
Mode 5 (CGA/EGA/VGA)  320 X 200 4-colour graphics
Mode 6 (CGA/EGA/VGA) 640 X 200 mono graphics
Mode 7 (Mono/EGA/VGA) 80 X 25 text
Modes 8-0Ch are not officially defined 
 
Mode 0Dh (EGA/VGA) 320 X 200 16-colour graphics
Mode 0Eh (EGA/VGA)  640 X 200 16-colour graphics
Mode 0Fh (EGA/VGA) 640 X 350 mono graphics
Mode 10h (EGA/VGA) 640 X 350 16-colour graphics
Mode 11h (VGA) 640 X 480 mono graphics
Mode 12h (VGA) 640 X 480 16-colour graphics
Mode 13h (VGA) 320 X 200 256-colour graphics
 

SuperVGA modes

Mode 6Ah (SVGA)  800 X 600 16-colour graphics
 
 

Unusual modes

360 X 480, 256 colours  Obtained when programmers edit the VGA registers
On RISC OS 3.5, !PC will also support other modes obtained by messing round with VGA registers, provided they are supported by the display and fit into one of the following categories: 
 
  • 16-colour graphics, using 4 video planes as VGA, up to 524288 pixels

  •  
  • 256-colour graphics, based on mode 13h, up to 65536 pixels

  •  
  • 256-colour graphics using Plane Mask / Read Plane Select registers (as 360 X 480 X 256 mode), up to 262144 pixels
Many games use unusual screen modes achieved in unusual ways, so there will still be some software that will not work. 
 
 
Aleph One Ltd. 53-56
 
Previous page Contents Next page