libmsx
C library for MSX
|
Stream like access functions for ROM / RAM. More...
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
bool | mem_is_opened (void) |
Tests whether ROM/RAM accessor is opened or not. | |
void | mem_open (uint8_t *loc) |
Open ROM/RAM accessor. | |
void | mem_close (void) |
Close ROM/RAM accessor. | |
void | mem_dup (uint16_t offset, size_t len) |
Duplicate a sequence of bytes beginning at the specified offset in the output stream at the current position or later. | |
uint8_t * | mem_ptr (void) |
Get current position of ROM/RAM accessor. | |
bool | mem_is_in_free_area (uint8_t *p, size_t len) |
Tests whether the specified range is in free area. | |
void | mem_write_chunk (const uint8_t *src, size_t len) |
Write a chunk to RAM. | |
void | mem_read_chunk (uint8_t *dst, size_t len) |
Read a chunk from ROM/RAM. | |
void | mem_write_byte (uint8_t x) |
Write an octet to RAM. | |
uint8_t | mem_read_byte (void) |
Read an octet from ROM/RAM. | |
Stream like access functions for ROM / RAM.
Definition in file mem_rw.h.