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: 3638
- Joined: Fri Aug 17, 2001 12:59 am
- Location: North Wales, UK.
- Has thanked: 1 time
- Been thanked: 12 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.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)
Servicing your cheating needs since 1985
Grab the latest cheat collection:
MAME 0.259 XML cheat collection (6 OCTOBER 2023) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/q4dHGZ6K#i-EUiqIjH ... KMz7hnbTfw (ZIP Archive 3.76MB)