mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2024-12-22 01:30:18 +00:00
Firmware: dis now allows an end address
Change-Id: Ie248760a48d6c7ed98770c947560961d23cfaccb
This commit is contained in:
parent
849300b51c
commit
e1bc7d1efa
@ -1201,12 +1201,16 @@ void doCmdReset(char *params) {
|
||||
// doCmdRegs is now in regs<cpu>.c
|
||||
|
||||
void doCmdDis(char *params) {
|
||||
uint8_t i;
|
||||
sscanf(params, "%x", &memAddr);
|
||||
uint8_t i = 0;
|
||||
addr_t startAddr = memAddr;
|
||||
addr_t endAddr = 0;
|
||||
sscanf(params, "%x %x", &startAddr, &endAddr);
|
||||
memAddr = startAddr;
|
||||
loadAddr(memAddr);
|
||||
for (i = 0; i < 10; i++) {
|
||||
do {
|
||||
memAddr = disassemble(memAddr);
|
||||
}
|
||||
i++;
|
||||
} while ((!endAddr && i < 10) || (endAddr && memAddr > startAddr && memAddr <= endAddr));
|
||||
}
|
||||
|
||||
void doCmdFill(char *params) {
|
||||
|
Loading…
Reference in New Issue
Block a user