|
Joined: May 1999
Posts: 157
Senior Member
|
OP
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
Very Senior Member
|
Very Senior Member
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 
|
|
|
|
Joined: Sep 2004
Posts: 392 Likes: 4
Senior Member
|
Senior Member
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
Very Senior Member
|
Very Senior Member
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
Senior Member
|
OP
Senior Member
Joined: May 1999
Posts: 157 |
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
Senior Member
|
Senior Member
Joined: Sep 2004
Posts: 392 Likes: 4 |
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
Very Senior Member
|
Very Senior Member
Joined: May 2009
Posts: 2,034 Likes: 74 |
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. 
|
|
|
|
Joined: Sep 2004
Posts: 392 Likes: 4
Senior Member
|
Senior Member
Joined: Sep 2004
Posts: 392 Likes: 4 |
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.  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
Very Senior Member
|
Very Senior Member
Joined: May 2009
Posts: 2,034 Likes: 74 |
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.  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
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 16,911 Likes: 56 |
At least as long as the GET_INFO interface for CPUs has existed.
|
|
|
5 members (Hydreigon, r09, box, 2 invisible),
16
guests, and
3
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,085
Posts119,081
Members5,014
|
Most Online890 Jan 17th, 2020
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|