libmsx
C library for MSX
Loading...
Searching...
No Matches

Read / Write PSG registers. More...

+ Collaboration diagram for PSG registers:

Functions

void psg_init (void)
 MSX Initialize PSG registers R#0 to R#13 with psg_reg_initial_vector.
 
uint8_t psg_get (uint8_t reg)
 MSX Read the PSG register value.
 
void psg_set (uint8_t reg, uint8_t val)
 MSX Write the PSG register value.
 

Variables

const uint8_t psg_reg_initial_vector [14]
 Initial values for PSG registers R#0 to R#13.
 

Detailed Description

Read / Write PSG registers.

Function Documentation

◆ psg_init()

void psg_init ( void  )

MSX Initialize PSG registers R#0 to R#13 with psg_reg_initial_vector.

◆ psg_get()

uint8_t psg_get ( uint8_t  reg)

MSX Read the PSG register value.

Parameters
regPSG register number.

◆ psg_set()

void psg_set ( uint8_t  reg,
uint8_t  val 
)

MSX Write the PSG register value.

Parameters
regPSG register number.
valthe value.

Variable Documentation

◆ psg_reg_initial_vector

const uint8_t psg_reg_initial_vector[14]
extern

Initial values for PSG registers R#0 to R#13.