Write to the 0x9XXX range of ports */
| 304 | |
| 305 | /* Write to the 0x9XXX range of ports */ |
| 306 | static 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 | |
| 319 | static const eZ80portrange_t p9xxx = { |
| 320 | .read = protected_read, |
nothing calls this directly
no test coverage detected