Home | Forums | What's new | Resources | |
Detecting USB flash cart and AR/Gameshark carts |
mrkotfw - Jan 7, 2016 |
cafe-alpha | Jan 9, 2016 | ||||
Here are the functions I'm using. As indicated by antime, I'm looking at the status flags (details here...).
Code:
usb_is_available function looks at unused (zero) bits in status register. On other cartridges, theses bits are usually set to high states, so it works, but of course it's not 100% reliable. usb_is_connected function will return 1 if USB is connected to both Saturn and PC. It won't detect anything in the case USB port is not powered. |