Previous Thread
Next Thread
Print Thread
#112844 - 03/11/18 05:09 PM Funny behaviour of debugger..  
Joined: Mar 2015
Posts: 52
fulivi Offline
Member
fulivi  Offline
Member

Joined: Mar 2015
Posts: 52
Hi,
I recently used the MAME debugger on the hp 64000 emulation.
I encountered a couple of funny things that might be due to bugs.
If I set a watchpoint with
Quote
wpi 1d,1,w
and I then list the watchpoints with
Quote
wplist
I get this:
Quote

Device ':cpu' io space watchpoints:
1 @ 0E-0E write


The watchpoint is actually installed at the correct address (i.e. it breaks @1d, not @0e).
Another strange thing happens if I open the memory window: the cpu program space memory stops at 7fff (it should stop at ffff).
Could this be related somehow to the fact that the cpu has 16-bit wide words and that it uses word (not byte) addressing? In MAME the address shift of both program & io address spaces is set to "-1".
--F.Ulivi

#112846 - 03/11/18 07:38 PM Re: Funny behaviour of debugger.. [Re: fulivi]  
Joined: Dec 2015
Posts: 81
AJR Offline
Member
AJR  Offline
Member

Joined: Dec 2015
Posts: 81
Thanks for this report. There may be similar bugs lurking in other parts of the debugger, but these two have been fixed in my most recent commits.

#112850 - 03/12/18 05:31 PM Re: Funny behaviour of debugger.. [Re: fulivi]  
Joined: Mar 2015
Posts: 52
fulivi Offline
Member
fulivi  Offline
Member

Joined: Mar 2015
Posts: 52
Ah, got another one. If I open the memory window and type an address that is >= 0x8000 nothing happens. If I use the side scrollbar I can get to the end of the memory space, though (i.e. up till 0xffff).
--F.Ulivi

#112852 - 03/12/18 07:51 PM Re: Funny behaviour of debugger.. [Re: fulivi]  
Joined: Dec 2015
Posts: 81
AJR Offline
Member
AJR  Offline
Member

Joined: Dec 2015
Posts: 81
That was due to masking the address at the wrong time. I took care of it just now.

#113109 - 04/12/18 03:50 PM Re: Funny behaviour of debugger.. [Re: fulivi]  
Joined: Mar 2015
Posts: 52
fulivi Offline
Member
fulivi  Offline
Member

Joined: Mar 2015
Posts: 52
A couple more "address shifting" bugs in the debugger:
- Memory access operators such as w@1234 are not shifting the address (for the HP hybrid CPU I need to write w@40 to actually access word @ 0x20)
- Memory window of debugger: if I type an address >= 8000, it jumps to 7fff. I can scroll beyond this address without any problem, though.

Thanks.
--F.Ulivi

#113115 - 04/13/18 06:50 PM Re: Funny behaviour of debugger.. [Re: fulivi]  
Joined: Dec 2015
Posts: 81
AJR Offline
Member
AJR  Offline
Member

Joined: Dec 2015
Posts: 81
Are you using the latest version of MAME? I can't reproduce these last two.

#113117 - 04/14/18 09:08 AM Re: Funny behaviour of debugger.. [Re: fulivi]  
Joined: Mar 2015
Posts: 52
fulivi Offline
Member
fulivi  Offline
Member

Joined: Mar 2015
Posts: 52
I'm using the version from which I branched off my (currently open) PR #3456.
I checked again: the first problem (the memory operator) is still there, the second one vanished (most likely when I rebased my commits).


Who's Online Now
4 registered members (B2K24, seanriddle, Pernod, shattered), 39 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,543
Posts111,677
Members4,795
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.022s Queries: 14 (0.007s) Memory: 4.9752 MB (Peak: 5.1745 MB) Zlib enabled. Server Time: 2018-06-20 18:54:04 UTC