Z80 port tracing

If you are having problems finding or using cheats for an Emulator (particularly MAME/MESS) or have found a trick that you wish to share this is the place to do it. But please read the Cheat FAQ first.
Post Reply
scott_tunstall
Posts: 14
Joined: Sun Feb 28, 2016 5:24 pm

Z80 port tracing

Post by scott_tunstall »

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
crazyc
Posts: 31
Joined: Sat Apr 30, 2016 4:49 pm

Re: Z80 port tracing

Post by crazyc »

"wpi" debugger command.
User avatar
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

Post by Pugsy »

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.
Pugsy

Servicing your cheating needs since 1985 8)

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)
Post Reply