MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / protected_write

Function protected_write

core/misc.c:306–317  ·  view source on GitHub ↗

Write to the 0x9XXX range of ports */

Source from the content-addressed store, hash-verified

304
305/* Write to the 0x9XXX range of ports */
306static void protected_write(const uint16_t pio, const uint8_t byte, bool poke) {
307 if (poke || protected_ports_unlocked()) {
308 switch (pio) {
309 case 0xB00:
310 protect.led = byte;
311 break;
312 default:
313 protect.ports[pio & 0xFF] = byte;
314 break;
315 }
316 }
317}
318
319static const eZ80portrange_t p9xxx = {
320 .read = protected_read,

Callers

nothing calls this directly

Calls 1

protected_ports_unlockedFunction · 0.85

Tested by

no test coverage detected