java debug命令_Mame DEBUG调试命令详细指令速查大全

本文详细介绍了MAME调试器的各种命令,包括通用调试命令、内存调试命令、断点调试命令、观察点调试命令和执行调试命令。通过这些命令,用户可以进行表达式评估、内存操作、设置断点、跟踪代码执行等高级调试操作,帮助深入理解游戏机模拟器MAME的内部工作原理。
摘要由CSDN通过智能技术生成

Mame DEBUG调试命令详细指令速查大全

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 s to the console

printf – prints one or more s to the console using

logerror – outputs one or more s to the error.log

tracelog – outputs one or more s to the trace file using

tracesym – outputs one or more s to the trace file

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 and executes them one by one

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 specified

bpdisable – disables a given breakpoint or all if no specified

bpenable – enables a given breakpoint or all if no specified

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 specified

wpdisable – disables a given watchpoint or all if no specified

wpenable – enables a given watchpoint or all if no specified

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 specified

rpdisable – disabled a given registerpoint or all if no specified

rpenable – enables a given registerpoint or all if no specified

rplist – lists all the registerpoints

rp[set] {}[,]]

rp {PC==0150},{temp0++; g}

Execution Debugger Commands

step – single steps for instructions (F11)

over – single steps over instructions (F10)

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 is taken (F7)

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] [=1]

o[ver] [=1]

out

g[o] [

]

gv[blank]

gi[nt] []

gt[ime]

n[ext]

focus

ignore [[,[,…]]]

observe [[,[,…]]]

trace {|OFF}[,[,[noloop|logerror][,]]]

traceover {|OFF}[,[,[,]]]

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值