mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2024-12-22 16:30:06 +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
|
// doCmdRegs is now in regs<cpu>.c
|
||||||
|
|
||||||
void doCmdDis(char *params) {
|
void doCmdDis(char *params) {
|
||||||
uint8_t i;
|
uint8_t i = 0;
|
||||||
sscanf(params, "%x", &memAddr);
|
addr_t startAddr = memAddr;
|
||||||
|
addr_t endAddr = 0;
|
||||||
|
sscanf(params, "%x %x", &startAddr, &endAddr);
|
||||||
|
memAddr = startAddr;
|
||||||
loadAddr(memAddr);
|
loadAddr(memAddr);
|
||||||
for (i = 0; i < 10; i++) {
|
do {
|
||||||
memAddr = disassemble(memAddr);
|
memAddr = disassemble(memAddr);
|
||||||
}
|
i++;
|
||||||
|
} while ((!endAddr && i < 10) || (endAddr && memAddr > startAddr && memAddr <= endAddr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void doCmdFill(char *params) {
|
void doCmdFill(char *params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user