MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

Naibo
Reged: 10/17/07
Posts: 148
Send PM


Return value from un-mapped spaces in a real hardware circuit
#395619 - 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.



Pages: 1

MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

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