PVcollib
1.5.0
A devkit for ColecoVision
|
contains the basic definitions for controlling the f18a video device. More...
#include <coleco/coltypes.h>
Go to the source code of this file.
Functions | |
void | vdp_f18ainit (void) |
Activate f18a device Activate f18a and init vdp_f18aok variable with 1 if it is ok | |
void | vdp_f18asetmode1 (u8 flags) |
Activate mode 1 in bitmap mode for f18a ONLY More... | |
void | vdp_f18asetpalette (void *data, unsigned char count) |
Send a palette RGB 12bits color entries to f18a device More... | |
void | vdp_f18asetscrollx (u8 bgnum, u8 x) |
Sets the horizontal scroll offset to the specified location. More... | |
void | vdp_f18asetscrolly (u8 bgnum, u8 y) |
Sets the vertical scroll offset to the specified location. More... | |
Variables | |
volatile u8 | vdp_f18aok |
vdp_f18aok is set if f18a module is present when calling vdp_f18ainit function | |
contains the basic definitions for controlling the f18a video device.
This unit provides generic features related to f18a device.
Here is the list of features:
vdp_f18asetmode1 | ( | u8 | flags | ) |
Activate mode 1 in bitmap mode for f18a ONLY
flags | ecm mode definition F18A_ECMS_0P or F18A_ECMS_1..3B for sprite color mode F18A_ECMT_0P or F18A_ECMT_1..3B for tile color mode F18A_ECM_R30 for 30 lines mode F18A_ECM_TM2 to activate tile map 2 F18A_ECM_YRE to activate Y real coordinates |
void vdp_f18asetpalette | ( | void * | data, |
unsigned char | count | ||
) |
Send a palette RGB 12bits color entries to f18a device
data | address of data to use |
count | number of data in words (each entry is two bytes) |
vdp_f18asetscrollx | ( | u8 | bgnum, |
u8 | x | ||
) |
Sets the horizontal scroll offset to the specified location.
bgnum | background number (1 or 2 for TL1 and TL2) |
x | the horizontal scroll offset (5 bits of scroll | 3 bits for planes : HTO0 HTO1 HTO2 HTO3 HTO4 HPO0 HPO1 HPO2) |
vdp_f18asetscrolly | ( | u8 | bgnum, |
u8 | y | ||
) |
Sets the vertical scroll offset to the specified location.
bgnum | background number (1 or 2 for TL1 and TL2) |
y | the vertical scroll offset (5 bits of scroll | 3 bits for planes : VTO0 VTO1 VTO2 VTO3 VTO4 VPO0 VPO1 VPO2) |