Default state of TH pin

For anything related to IO (joypad, serial, XE...)

Moderator: BigEvilCorporation

Post Reply
TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Default state of TH pin

Post by TmEE co.(TM) » Thu Jun 11, 2015 12:59 am

...is different on TMSS and non TMSS hardware.

On non TMSS hardware the pin defaults to "1" state while on TMSS hardware it defaults to "0" state.
I was debugging couple ROMs sent by someone who made few demos in the early 90's and they all had the problem where controller input wasn't as expected. These demos didn't initialize the controller ports and as a consequence they only worked proper on MD1 VA4 and older, while failing on newer stuff.

It seems all emulators (that I tried) emulate the TMSS hardware behaviour.
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

HardWareMan
Very interested
Posts: 745
Joined: Sat Dec 15, 2007 7:49 am
Location: Kazakhstan, Pavlodar

Post by HardWareMan » Thu Jun 11, 2015 4:47 am

There is a programmer's golden rule: no one will do initialization for you. So, to rely on the default state is fraught with errors. Conclusion: drive out such programmers away from MD.

Post Reply