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

Function fxxx_write

core/misc.c:372–387  ·  view source on GitHub ↗

Write to the 0xFXXX range of ports */

Source from the content-addressed store, hash-verified

370
371/* Write to the 0xFXXX range of ports */
372static void fxxx_write(const uint16_t pio, const uint8_t value, bool poke) {
373 (void)poke;
374 /* 0xFFE appears to dump the contents of flash. Probably not a good thing to print to a console :) */
375 if (pio != 0xFFF) {
376 return;
377 }
378
379#ifdef DEBUG_SUPPORT
380 if (value != 0) {
381 debug.buffer[debug.bufPos] = (char)value;
382 debug.bufPos = (debug.bufPos + 1) % (SIZEOF_DBG_BUFFER);
383 }
384#else
385 (void)value;
386#endif
387}
388
389/* Read from the 0xFXXX range of ports */
390static uint8_t fxxx_read(const uint16_t pio, bool peek) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected