|
libmsx
C library for MSX
|
Read / Write VRAM. More...
Collaboration diagram for VRAM access interface:Typedefs | |
| typedef uint32_t | vmemptr_t |
| Type for VRAM address. | |
Functions | |
| void | vmem_set_read_address (vmemptr_t loc) |
MSX Set VRAM address for sequential reading of VRAM. | |
| void | vmem_set_write_address (vmemptr_t loc) |
MSX Set VRAM address for sequential writing of VRAM. | |
| uint8_t | vmem_get (void) |
MSX Read 1 byte from VRAM. | |
| void | vmem_set (uint8_t val) |
MSX Write 1 byte to VRAM. | |
| void | vmem_read (vmemptr_t src, void *dst, uint16_t len) |
MSX Read a series of bytes from VRAM. | |
| void | vmem_write (vmemptr_t dst, void *src, uint16_t len) |
MSX Write a series of bytes to VRAM. | |
| void | vmem_memset (vmemptr_t dst, uint8_t val, uint16_t len) |
MSX Fill a series of bytes in VRAM with the specified value. | |
Read / Write VRAM.
| void vmem_set_read_address | ( | vmemptr_t | loc | ) |
MSX Set VRAM address for sequential reading of VRAM.
This function sets the VRAM access base address register (R#14) and/or the VRAM address counter to a value based on loc for sequential reading of VRAM in subsequent calls to vmem_get().
| loc | VRAM address. |
| void vmem_set_write_address | ( | vmemptr_t | loc | ) |
MSX Set VRAM address for sequential writing of VRAM.
This function sets the VRAM access base address register (R#14) and/or the VRAM address counter to a value based on loc for sequential writing of VRAM in subsequent calls to vmem_set().
| loc | VRAM address. |
|
inline |
MSX Read 1 byte from VRAM.
|
inline |
MSX Write 1 byte to VRAM.
| val | a value to be written to VRAM. |
| void vmem_read | ( | vmemptr_t | src, |
| void * | dst, | ||
| uint16_t | len ) |
MSX Read a series of bytes from VRAM.
This function copies len bytes from VRAM to RAM.
That is almost same as the below code:
| src | source base address of VRAM. |
| dst | destination base address of RAM. |
| len | number of bytes to be read. |
| void vmem_write | ( | vmemptr_t | dst, |
| void * | src, | ||
| uint16_t | len ) |
MSX Write a series of bytes to VRAM.
This function copies len bytes from ROM/RAM to VRAM.
That is almost same as the below code:
| dst | destination base address of VRAM. |
| src | source base address of ROM/RAM. |
| len | number of bytes to be written. |
| void vmem_memset | ( | vmemptr_t | dst, |
| uint8_t | val, | ||
| uint16_t | len ) |
MSX Fill a series of bytes in VRAM with the specified value.
That is almost same as the below code:
| dst | destination base address of VRAM. |
| val | a byte value to be written. |
| len | number of bytes to be written. |