Mame DEBUG调试命令详细指令速查大全
整理:https://my.oschina.net/zengfr/
来源:https://docs.mamedev.org/debugger/index.html
General Debugger Commands
do – evaluates the given expression
symlist – lists registered symbols
softreset – executes a soft reset
hardreset – executes a hard reset
print – prints one or more
printf – prints one or more
logerror – outputs one or more
tracelog – outputs one or more
tracesym – outputs one or more
history – outputs a brief history of visited opcodes (to fix: help missing for this command)
trackpc – visually track visited opcodes [boolean to turn on and off, for the given CPU, clear]
trackmem – record which PC writes to each memory address [boolean to turn on and off, clear]
pcatmem – query which PC wrote to a given memory address for the current CPU
rewind – go back in time by loading the most recent rewind state
statesave – save a state file for the current driver
stateload – load a state file for the current driver
snap – save a screen snapshot.
source – reads commands from
quit – exits MAME and the debugger
do
symlist [
softreset
hardreset
print
printf
logerror
tracelog
tracesym
trackpc [
trackmem [
pcatmem(p/d/i) [,
rewind[rw]
statesave[ss]
stateload[sl]
snap [[
source
quit
Memory Debugger Commands
dasm – disassemble to the given file
find – search program memory, data memory, or I/O memory for data
dump – dump program memory, data memory, or I/O memory as text
save – save binary program, data, or I/O memory to the given file
load – load binary program memory, data memory, or I/O memory from the given file
map – map logical program, data, or I/O address to physical address and bank
dasm
f[ind][{d|i}] ,
dump[{d|i}]
save[{d|i}]
load[{d|i}]
map[{d|i}]
Breakpoint Debugger Commands
bpset – sets breakpoint at
bpclear – clears a given breakpoint or all if no
bpdisable – disables a given breakpoint or all if no
bpenable – enables a given breakpoint or all if no
bplist – lists all the breakpoints
bp[set]
[,bp 45678,a0==100,{a0 = ff; g}
bp 3456,1,{printf “A0=%08X\n”,a0; g}
temp0 = 0; bp 567890,++temp0 >= 10
Watchpoint Debugger Commands
wpset – sets program, data, or I/O space watchpoint
wpclear – clears a given watchpoint or all if no
wpdisable – disables a given watchpoint or all if no
wpenable – enables a given watchpoint or all if no
wplist – lists all the watchpoints
wp[{d|i}][set]
,wp 23456,a,w,wpdata == 1
Registerpoints Debugger Commands
rpset – sets a registerpoint to trigger on
rpclear – clears a given registerpoint or all if no
rpdisable – disabled a given registerpoint or all if no
rpenable – enables a given registerpoint or all if no
rplist – lists all the registerpoints
rp[set] {
rp {PC==0150},{temp0++; g}
Execution Debugger Commands
step – single steps for
over – single steps over
out – single steps until the current subroutine/exception handler is exited (Shift-F11)
go – resumes execution, sets temp breakpoint at (F5)
gint – resumes execution, setting temp breakpoint if
gtime – resumes execution until the given delay has elapsed
gvblank – resumes execution, setting temp breakpoint on the next VBLANK (F8)
next – executes until the next CPU switch (F6)
focus – focuses debugger only on
ignore – stops debugging on
observe – resumes debugging on
trace – trace the given CPU to a file (defaults to active CPU)
traceover – trace the given CPU to a file, but skip subroutines (defaults to active CPU)
traceflush – flushes all open trace files.
s[tep] [
o[ver] [
out
g[o] []
gv[blank]
gi[nt] [
gt[ime]
n[ext]
focus
ignore [
observe [
trace {
traceover {
traceflush
Debugger Expressions Guide
Numbers
Numbers are prefixed according to their bases:
Hexadecimal (base-16) numbers are prefixed with $ or 0x.
Decimal (base-10) numbers are prefixed with #.
Octal (base-8) numbers are prefixed with 0o.
Binary (base-2) numbers are prefixed with 0b.
Unprefixed numbers are hexadecimal (base-16).
( ) : standard parentheses
++ – : postfix increment/decrement
++ – ~ ! - + b@ w@ d@ q@ : prefix inc/dec, binary NOT, logical NOT, unary +/-, memory access
* / % : multiply, divide, modulus
+ - : add, subtract
<< >> : shift left/right
< <= > >= : less than, less than or equal, greater than, greater than or equal
== != : equal, not equal
& : binary AND
^ : binary XOR
| : binary OR
&& : logical AND
|| : logical OR
= *= /= %= += -= <<= >>= &= |= ^= : assignment
, : separate terms, function parameters
https://docs.mamedev.org/debugger/index.html
相关资料整理:
恐龙快打dino恐龙新世纪Cadillacs and Dinosaurs作弊码大全详细 mame cheat xml file
https://my.oschina.net/zengfr/blog/3141370
恐龙快打dino恐龙新世纪Cadillacs and Dinosaurs作弊码大全详细 FBA cheat ini file金手指
https://my.oschina.net/zengfr/blog/3145167
街机恐龙快打dino恐龙新世纪Cadillacs and Dinosaurs显示暴击值easy68K汇编代码修正版本
https://my.oschina.net/zengfr/blog/3143536
街机恐龙快打dino恐龙新世纪Cadillacs and Dinosaurs 68000 hack rom代码 68K反汇编-敌兵血量
https://my.oschina.net/zengfr/blog/3144490
街机恐龙快打dino恐龙新世纪Cadillacs and Dinosaurs 68000 hack rom代码 68K反汇编-敌兵倍数与敌兵替换
https://my.oschina.net/zengfr/blog/3145153
Mame DEBUG调试命令详细指令速查大全
https://my.oschina.net/zengfr/blog/3144668
恐龙快打dino恐龙新世纪Cadillacs and Dinosaurs内存地址映射
https://my.oschina.net/zengfr/blog/3145223