Am working on Gorf at the moment.
I was wondering, is it possible in MAME to put a watch on a Z80 I/O port?
For example, ports that read # of credits inserted, switches etc with the IN A, (C) instruction and OUT (C), A? etc.
With memory mapped IO I can use WPSET, but I don't know what I can use for ports.
Any advice appreciated.
Scott
Z80 port tracing
- Pugsy
- Posts: 3675
- Joined: Fri Aug 17, 2001 12:59 am
- Location: North Wales, UK.
- Has thanked: 1 time
- Been thanked: 15 times
- Contact:
Re: Z80 port tracing
Not used wpi myself, but I guess it depends on what you are trying to do exactly I guess.
For Gorf, the credit pulse happens when D009=1 and it does D003++ and then sets D009=0.
For Gorf, the credit pulse happens when D009=1 and it does D003++ and then sets D009=0.
Pugsy
Servicing your cheating needs since 1985
Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)
Servicing your cheating needs since 1985
Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)