MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

Naibo
Reged: 10/17/07
Posts: 148
Send PM
Return value from un-mapped spaces in a real hardware circuit
01/28/23 09:08 AM


Currently, MAME seems to return "0" when accessing un-mapped spaces. However, in a real electronic circuit, the result is usually the opposite. It usually returns "1":

-For the widely used TTL standard, because it has a pull-up resistor in the input, so always returns "1" when not connected;
-For MOS circuit, when input is floating/high-z, even if without a pull-up resistor present(rarely), the return is usually random, not always zero. In this case, a return of "1" will not be worse than 0.

While the above condition doesn't affect "Normal" cases, some programs might not coded very formally, so might behavior differently and even weired, and hard to debug.








Entire thread
Subject Posted by Posted on
* Return value from un-mapped spaces in a real hardware circuit Naibo 01/28/23 09:08 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 21 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 206