Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
#59216 02/17/10 10:08 PM
Joined: May 1999
Posts: 157
JoJo Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 157
Short & simple: a stack display. Given the current layout, the best position to place it would be into the register window - plenty of vertical space there.


JoJo
Joined: Mar 2001
Posts: 16,911
Likes: 56
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,911
Likes: 56
FWIW, you can simulate that by opening a memory window and setting the address to the name of the stack register. It's not ideal because stacks usually grow backwards in memory, but it's a start smile

Joined: Sep 2004
Posts: 392
Likes: 4
A
Senior Member
Offline
Senior Member
A
Joined: Sep 2004
Posts: 392
Likes: 4
Better yet, just set the address to sp-100 and you'll get a dump 256 bytes before the stack.

Joined: Mar 2001
Posts: 16,911
Likes: 56
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,911
Likes: 56
Oh, wow. I didn't realize that could be a full expression.

Joined: May 1999
Posts: 157
JoJo Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 1999
Posts: 157
Originally Posted By AaronGiles
Better yet, just set the address to sp-100 and you'll get a dump 256 bytes before the stack.


Really interesting: once I set properly the chunks width and decrease the number of bytes per line so that there is just one chunk per line, the resulting view is almost perfect: the only features missing are a reverse of the order of the bytes so that the top of the stack is, well, on the top and an endianness switch.

Apart from the chunk width setting, it'd be nice to have this view mode pre-set.


JoJo
Joined: Sep 2004
Posts: 392
Likes: 4
A
Senior Member
Offline
Senior Member
A
Joined: Sep 2004
Posts: 392
Likes: 4
Originally Posted By R. Belmont
Oh, wow. I didn't realize that could be a full expression.

Yes, expressions can be used pretty much everywhere. You can even do funky stuff like d@a0 to fetch the dword at a0 and use that as the address. Useful for tracking what things are pointing to.

Joined: May 2009
Posts: 2,034
Likes: 74
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,034
Likes: 74
Originally Posted By R. Belmont
Oh, wow. I didn't realize that could be a full expression.


Of course. It's the only real way to debug u'nSP-based drivers, since the atomic word size is 16 bits and MAME doesn't have a real good way of handling that; as a result, you have to stick *2 after any address you look up in the memory window. smile

Joined: Sep 2004
Posts: 392
Likes: 4
A
Senior Member
Offline
Senior Member
A
Joined: Sep 2004
Posts: 392
Likes: 4
Originally Posted By Just Desserts
Of course. It's the only real way to debug u'nSP-based drivers, since the atomic word size is 16 bits and MAME doesn't have a real good way of handling that; as a result, you have to stick *2 after any address you look up in the memory window. smile

Err, what? Set the ADDRBUS_SHIFT to -1 in the info and the debugger will do that for you (and in the memory maps). See the TMS32010 or ADSP2100 for an example.

Joined: May 2009
Posts: 2,034
Likes: 74
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,034
Likes: 74
Originally Posted By AaronGiles
Originally Posted By Just Desserts
Of course. It's the only real way to debug u'nSP-based drivers, since the atomic word size is 16 bits and MAME doesn't have a real good way of handling that; as a result, you have to stick *2 after any address you look up in the memory window. smile

Err, what? Set the ADDRBUS_SHIFT to -1 in the info and the debugger will do that for you (and in the memory maps). See the TMS32010 or ADSP2100 for an example.


How recently or un-recently was this feature added? I was looking high and low for something like that, couldn't find it.

Joined: Mar 2001
Posts: 16,911
Likes: 56
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,911
Likes: 56
At least as long as the GET_INFO interface for CPUs has existed.

Page 1 of 2 1 2

Link Copied to Clipboard
Who's Online Now
5 members (Hydreigon, r09, box, 2 invisible), 16 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,085
Posts119,081
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com