PVcollib  1.5.0
A devkit for ColecoVision
Functions | Variables
f18a.h File Reference

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

 

Detailed Description

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:

Function Documentation

◆ vdp_f18asetmode1()

vdp_f18asetmode1 ( u8  flags)

Activate mode 1 in bitmap mode for f18a ONLY

Parameters
flagsecm 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
Examples:
graphics/f18a/f18abitmap1/f18abitmap1.c, graphics/f18a/f18aecm3/f18aecm3.c, and graphics/f18a/f18atest/f18atest.c.

◆ vdp_f18asetpalette()

void vdp_f18asetpalette ( void *  data,
unsigned char  count 
)

Send a palette RGB 12bits color entries to f18a device

Parameters
dataaddress of data to use
countnumber of data in words (each entry is two bytes)
Examples:
graphics/f18a/f18abitmap1/f18abitmap1.c, and graphics/f18a/f18aecm3/f18aecm3.c.

◆ vdp_f18asetscrollx()

vdp_f18asetscrollx ( u8  bgnum,
u8  x 
)

Sets the horizontal scroll offset to the specified location.

Parameters
bgnumbackground number (1 or 2 for TL1 and TL2)
xthe horizontal scroll offset
(5 bits of scroll | 3 bits for planes : HTO0 HTO1 HTO2 HTO3 HTO4 HPO0 HPO1 HPO2)

◆ vdp_f18asetscrolly()

vdp_f18asetscrolly ( u8  bgnum,
u8  y 
)

Sets the vertical scroll offset to the specified location.

Parameters
bgnumbackground number (1 or 2 for TL1 and TL2)
ythe vertical scroll offset
(5 bits of scroll | 3 bits for planes : VTO0 VTO1 VTO2 VTO3 VTO4 VPO0 VPO1 VPO2)