|
libmsx
C library for MSX
|
Inspect the slot mechanism of MSX. More...
Collaboration diagram for Slot inspection:Functions | |
| void | slot_iterate (void(*callback)(uint8_t slot, void *arg), void *arg) |
MSX For each slot, invoke the given callback with the given arguments. | |
| int | slot_bcmp (uint8_t slot, const void *addr, const void *s, size_t len) |
MSX Compare the byte sequence to the one present at the given address in the given slot. | |
| bool | slot_is_read_only (uint8_t slot, void *addr) |
MSX Tests whether a given memory address of the given slot is read-only. | |
| bool | slot_is_MAIN_ROM (uint8_t slot) |
MSX Inspects if the slot is MAIN ROM. | |
| bool | slot_is_SUB_ROM (uint8_t slot) |
MSX Inspects if the slot is SUB ROM. | |
| bool | slot_is_RAM (uint8_t slot) |
MSX Inspects if the slot is RAM. | |
| bool | slot_is_internal_OPLL (uint8_t slot) |
MSX Inspects if the slot is the internal MSX-MUSIC. | |
| bool | slot_is_FMPAC (uint8_t slot) |
MSX Inspects if the slot is the FMPAC. | |
| bool | slot_is_OPLL (uint8_t slot) |
MSX Inspects if the slot is a MSX-MUSIC. | |
| bool | slot_is_SCC (uint8_t slot) |
MSX Inspects if the slot is a Konami SCC/SCC+. | |
| bool | slot_is_SCCPlus (uint8_t slot) |
MSX Inspects if the slot is a Konami SCC+. | |
| bool | slot_is_BDOS (uint8_t slot) |
MSX Inspects if the slot is a BDOS/FDC. | |
| bool | slot_is_ROM_p1 (uint8_t slot) |
MSX Inspects if the slot is a ROM starting at 0x4000. | |
| bool | slot_is_ROM_p2 (uint8_t slot) |
MSX Inspects if the slot is a ROM starting at 0x8000. | |
| bool | slot_is_ROM (uint8_t slot) |
MSX Inspects if the slot is a ROM starting at 0x4000 or 0x8000. | |
Inspect the slot mechanism of MSX.
| void slot_iterate | ( | void(* | callback )(uint8_t slot, void *arg), |
| void * | arg ) |
MSX For each slot, invoke the given callback with the given arguments.
| callback | a user defined callback function that takes slot and arg. |
| arg | argument to be passed to the callback. |
| int slot_bcmp | ( | uint8_t | slot, |
| const void * | addr, | ||
| const void * | s, | ||
| size_t | len ) |
MSX Compare the byte sequence to the one present at the given address in the given slot.
| slot | slot address of the one compared to. |
| addr | address of the one compared to. |
| s | pointer to the byte sequence. |
| len | length of the byte sequence. |
| bool slot_is_read_only | ( | uint8_t | slot, |
| void * | addr ) |
MSX Tests whether a given memory address of the given slot is read-only.
This tests, in exact, whether a value read from the address is differ from the value written before.
In other words, if it returns false, it means that the memory address is RAM or a typical R/W register. However, if it returns true, it does not necessarily mean that the memory address is read-only, but could be a write-only register, for example.
| slot | slot address |
| addr | address |
true if it seems not a RAM, false otherwise. | bool slot_is_MAIN_ROM | ( | uint8_t | slot | ) |
MSX Inspects if the slot is MAIN ROM.
| slot | a slot address. |
true if the slot is MAIN ROM. | bool slot_is_SUB_ROM | ( | uint8_t | slot | ) |
MSX Inspects if the slot is SUB ROM.
| slot | a slot address. |
true if the slot is SUB ROM. | bool slot_is_RAM | ( | uint8_t | slot | ) |
MSX Inspects if the slot is RAM.
| slot | a slot address. |
true if the slot is RAM.| bool slot_is_internal_OPLL | ( | uint8_t | slot | ) |
MSX Inspects if the slot is the internal MSX-MUSIC.
| slot | a slot address. |
true if the slot is the internal MSX-MUSIC. | bool slot_is_FMPAC | ( | uint8_t | slot | ) |
MSX Inspects if the slot is the FMPAC.
| slot | a slot address. |
true if the slot is the FMPAC. | bool slot_is_OPLL | ( | uint8_t | slot | ) |
MSX Inspects if the slot is a MSX-MUSIC.
| slot | a slot address. |
true if the slot is a MSX-MUSIC. | bool slot_is_SCC | ( | uint8_t | slot | ) |
MSX Inspects if the slot is a Konami SCC/SCC+.
| slot | a slot address. |
true if the slot is a Konami SCC/SCC+. | bool slot_is_SCCPlus | ( | uint8_t | slot | ) |
MSX Inspects if the slot is a Konami SCC+.
| slot | a slot address. |
true if the slot is a Konami SCC+. | bool slot_is_BDOS | ( | uint8_t | slot | ) |
MSX Inspects if the slot is a BDOS/FDC.
| slot | a slot address. |
true if the slot is a BDOS/FDC. | bool slot_is_ROM_p1 | ( | uint8_t | slot | ) |
MSX Inspects if the slot is a ROM starting at 0x4000.
| slot | a slot address. |
true if the slot is a ROM starting at 0x4000.| bool slot_is_ROM_p2 | ( | uint8_t | slot | ) |
MSX Inspects if the slot is a ROM starting at 0x8000.
| slot | a slot address. |
true if the slot is a ROM starting at 0x8000.| bool slot_is_ROM | ( | uint8_t | slot | ) |
MSX Inspects if the slot is a ROM starting at 0x4000 or 0x8000.
| slot | a slot address. |
true if the slot is a ROM starting at 0x4000 or 0x8000.