Read from the 0x9XXX range of ports */
| 288 | |
| 289 | /* Read from the 0x9XXX range of ports */ |
| 290 | static uint8_t protected_read(const uint16_t pio, bool peek) { |
| 291 | uint8_t value = 0; |
| 292 | if (peek || protected_ports_unlocked()) { |
| 293 | switch (pio) { |
| 294 | case 0xB00: |
| 295 | value = protect.led; |
| 296 | break; |
| 297 | default: |
| 298 | value = protect.ports[pio & 0xFF]; |
| 299 | break; |
| 300 | } |
| 301 | } |
| 302 | return value; |
| 303 | } |
| 304 | |
| 305 | /* Write to the 0x9XXX range of ports */ |
| 306 | static void protected_write(const uint16_t pio, const uint8_t byte, bool poke) { |
nothing calls this directly
no test coverage detected