MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

AWJ
Reged: 03/08/05
Posts: 936
Loc: Ottawa, Ontario
Send PM
Re: MAME debugger question
09/30/14 09:32 PM


You're... unfortunately doing it so completely wrong I'm not sure where to start explaining.

Don't look at the ROM definitions to see "where things are mapped in memory", look at the address maps. In the case of simpsons, you can see that the YM2151 and the K053260 are both mapped on z80_map, the former at F800-F801 and the latter at FC00-FC2F. Go down to the MACHINE_CONFIG and you can see that z80_map is the program address map used by "audiocpu". So to break when the game accesses the sound chips, you'd set watchpoints on those address ranges for "audiocpu", using wpset (not wpdset)

wpdset is for Harvard-architecture processors that have separate program and data address spaces (mainly DSPs). If the address map you wanted to set a watchpoint in was a MCFG_CPU_DATA_MAP you'd use wpdset. If it was an IO address space (MCFG_CPU_IO_MAP) you'd use wpiset.







Entire thread
Subject Posted by Posted on
* MAME debugger question TheShanMan 09/30/14 04:43 PM
. * Re: MAME debugger question AWJ  09/30/14 09:32 PM
. * Re: MAME debugger question TheShanMan  10/01/14 12:00 AM
. * Re: MAME debugger question AWJ  10/01/14 03:15 AM
. * Re: MAME debugger question TheShanMan  10/04/14 06:42 AM
. * Re: MAME debugger question R. Belmont  10/04/14 05:18 PM
. * Re: MAME debugger question AWJ  10/04/14 11:54 AM
. * Re: MAME debugger question TheShanMan  10/04/14 07:02 PM
. * Re: MAME debugger question AWJ  10/04/14 09:43 PM
. * Re: MAME debugger question TheShanMan  10/05/14 03:08 AM
. * Re: MAME debugger question AWJ  10/07/14 04:06 AM
. * Re: MAME debugger question TheShanMan  10/08/14 07:16 AM
. * Re: MAME debugger question Sune  10/04/14 06:50 AM
. * Re: MAME debugger question TheShanMan  10/01/14 07:37 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 282 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2853