MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

peter ferrie
MAME Fan
Reged: 10/06/10
Posts: 46
Send PM


MAME x86 disassembler behaviour
#272904 - 01/14/12 01:38 AM


the opcodes
f6 xx (test byte, val)
and
80 &38=38 (cmp byte, val)

show -val when val is 0x80..0xff

While it is technically correct, I find it harder to read.
Is there an option to display using unsigned values, or it requires changing the code?



drewcifer
One bad Mutha-(shut yo' mouth!)
Reged: 07/01/04
Posts: 428
Loc: Sweden
Send PM


Re: MAME x86 disassembler behaviour new [Re: peter ferrie]
#272911 - 01/14/12 03:18 AM


Good question, and thanks for looking at the x86 stuff in MAME!

MAME's debugger is pretty basic, and while it would be super-cool to have numeric value printing options, really all it does right now is call a function in a core's disassembler that sprintfs to a string. And each core's disassembler does it differently. So, to my knowledge, your best bet for now is to just edit the disassembly core to print out what you want it to print out.

It's possible people on MAMEdev share your opinion of how the number should be printed, and a patch that does what you describe may be gladly incorporated into mainstream.

Andrew


> the opcodes
> f6 xx (test byte, val)
> and
> 80 &38=38 (cmp byte, val)
>
> show -val when val is 0x80..0xff
>
> While it is technically correct, I find it harder to read.
> Is there an option to display using unsigned values, or it requires changing the
> code?


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

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