Read / Write PSG registers.
More...
|
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.
|
|
Read / Write PSG registers.
◆ psg_init()
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
-
◆ psg_set()
void psg_set |
( |
uint8_t |
reg, |
|
|
uint8_t |
val |
|
) |
| |
MSX
Write the PSG register value.
- Parameters
-
reg | PSG register number. |
val | the value. |
◆ psg_reg_initial_vector
const uint8_t psg_reg_initial_vector[14] |
|
extern |
Initial values for PSG registers R#0 to R#13.