libmsx
C library for MSX
Loading...
Searching...
No Matches
Unsafe primitive functions

Unsafe primitive functions for VDP (Video Display Proccessor) access. More...

+ Collaboration diagram for Unsafe primitive functions:

Functions

void VDP_SET_CONTROL_REGISTER (uint8_t reg, uint8_t val)
 MSX Write a value to the specified VDP control register.
 
void VDP_SET_CONTROL_REGISTER_POINTER (uint8_t reg)
 MSX2 Set VDP control register number for subsequent writing to the VDP control register.
 
void VDP_SET_CONTROL_REGISTER_POINTER_AUTO_INCREMENT (uint8_t reg)
 MSX2 Set VDP control register number for subsequent writing to the series of VDP control registers.
 
void VDP_SET_CONTROL_REGISTER_VALUE (uint8_t val)
 MSX2 Write a value to the VDP control register pointed by R#17.
 
void VDP_SET_STATUS_REGISTER_POINTER (uint8_t reg)
 MSX2 Set VDP status register number for subsequent reading from the VDP status register.
 
uint8_t VDP_GET_STATUS_REGISTER_VALUE (void)
 MSX Reads a value from VDP status register.
 
void VDP_SET_VMEM_WRITE_POINTER (vmemptr_t loc)
 MSX Set VRAM address for subsequent writing to VRAM.
 
void VDP_SET_VMEM_READ_POINTER (vmemptr_t loc)
 MSX Set VRAM address for subsequent reading from VRAM.
 
void VDP_SET_VMEM_VALUE (uint8_t val)
 MSX Write a value to VRAM.
 
uint8_t VDP_GET_VMEM_VALUE (void)
 MSX Read a value from VRAM.
 

Detailed Description

Unsafe primitive functions for VDP (Video Display Proccessor) access.

Function Documentation

◆ VDP_SET_CONTROL_REGISTER()

void VDP_SET_CONTROL_REGISTER ( uint8_t  reg,
uint8_t  val 
)
inline

MSX Write a value to the specified VDP control register.

Parameters
regVDP control register number.
valValue to be written.
Attention
Unsafe but fast.
See also
vdp_set_control()

Definition at line 46 of file vdp_unsafe.h.

◆ VDP_SET_CONTROL_REGISTER_POINTER()

void VDP_SET_CONTROL_REGISTER_POINTER ( uint8_t  reg)
inline

MSX2 Set VDP control register number for subsequent writing to the VDP control register.

Parameters
regVDP control register number.
Attention
Unsafe but fast.
Note
Same as VDP_SET_CONTROL_REGISTER(17, reg | 0x80).
See also
VDP_SET_CONTROL_REGISTER_VALUE()

Definition at line 65 of file vdp_unsafe.h.

◆ VDP_SET_CONTROL_REGISTER_POINTER_AUTO_INCREMENT()

void VDP_SET_CONTROL_REGISTER_POINTER_AUTO_INCREMENT ( uint8_t  reg)
inline

MSX2 Set VDP control register number for subsequent writing to the series of VDP control registers.

Parameters
regVDP control register number.
Attention
Unsafe but fast.
Note
Same as VDP_SET_CONTROL_REGISTER(17, reg).
See also
VDP_SET_CONTROL_REGISTER_VALUE()
vdp_write_control()

Definition at line 84 of file vdp_unsafe.h.

◆ VDP_SET_CONTROL_REGISTER_VALUE()

void VDP_SET_CONTROL_REGISTER_VALUE ( uint8_t  val)
inline

MSX2 Write a value to the VDP control register pointed by R#17.

Parameters
vala value.
Attention
Unsafe but fast.
See also
VDP_SET_CONTROL_REGISTER_POINTER()
VDP_SET_CONTROL_REGISTER_POINTER_AUTO_INCREMENT()

Definition at line 99 of file vdp_unsafe.h.

◆ VDP_SET_STATUS_REGISTER_POINTER()

void VDP_SET_STATUS_REGISTER_POINTER ( uint8_t  reg)
inline

MSX2 Set VDP status register number for subsequent reading from the VDP status register.

Parameters
regVDP status register number.
Attention
Unsafe but fast.
Note
Same as VDP_SET_CONTROL_REGISTER(15, reg).
See also
VDP_GET_STATUS_REGISTER_VALUE()
vdp_get_status()

Definition at line 118 of file vdp_unsafe.h.

◆ VDP_GET_STATUS_REGISTER_VALUE()

uint8_t VDP_GET_STATUS_REGISTER_VALUE ( void  )
inline

MSX Reads a value from VDP status register.

Returns
a value.
Attention
Unsafe but fast.
See also
vdp_get_status()

Definition at line 132 of file vdp_unsafe.h.

◆ VDP_SET_VMEM_WRITE_POINTER()

void VDP_SET_VMEM_WRITE_POINTER ( vmemptr_t  loc)
inline

MSX Set VRAM address for subsequent writing to VRAM.

Parameters
locVRAM address.
Attention
Unsafe but fast.
See also
VDP_SET_VMEM_VALUE()
vmem_set_write_address()

Definition at line 147 of file vdp_unsafe.h.

◆ VDP_SET_VMEM_READ_POINTER()

void VDP_SET_VMEM_READ_POINTER ( vmemptr_t  loc)
inline

MSX Set VRAM address for subsequent reading from VRAM.

Parameters
locVRAM address.
Attention
Unsafe but fast.
See also
VDP_GET_VMEM_VALUE()
vmem_set_read_address()

Definition at line 166 of file vdp_unsafe.h.

◆ VDP_SET_VMEM_VALUE()

void VDP_SET_VMEM_VALUE ( uint8_t  val)
inline

MSX Write a value to VRAM.

Parameters
vala value.
Attention
Unsafe but fast.
See also
VDP_SET_VMEM_WRITE_POINTER()
vmem_set()
vmem_write()
vmem_memset()

Definition at line 187 of file vdp_unsafe.h.

◆ VDP_GET_VMEM_VALUE()

uint8_t VDP_GET_VMEM_VALUE ( void  )
inline

MSX Read a value from VRAM.

Returns
a value.
Attention
Unsafe but fast.
See also
VDP_SET_VMEM_READ_POINTER()
vmem_get()
vmem_read()

Definition at line 203 of file vdp_unsafe.h.