Closed sneakywumpus closed 3 months ago
The return value for unused I/O ports is system dependent, on S100 systems one reads 0xff, because there are pullup resistors on the CPU cards for the data in bus.
That's OK, I never wrote a header file for iosim because theoretically only two functions are exposed to the CPU cores for the IN and OUT instructions. But over time it got more complicated, probably better to define the interface now.
Mostly reverts d7f4eea85b.
Add IO_DATA_UNUSED to define the value returned by unused I/O ports (only really used by intelmdssim, which returns 0x00).
I would really like to clean things up, and move all the
extern
's and definitions into header files, which then defines the interface of the corresponding.c
file. This convention is already followed byiodevices
. Opinions?