Next: Script mode, Previous: Writing to CPU registers, Up: Debugging [Contents][Index]
You may provide more than one command on the same entry, by separating them with a semicolon. For example, it’s often desired to perform a single step and immediately afterwards to examine the CPU state. You can do this with the command
step; read-all-regs
Repetitive action is common when debugging. Fortunately, with µPad it’s not necessary to retype an entire command in order to repeat it. The familiar features found in most modern command shells also work in µPad. These are:
Like most command shells, you can repeat the most recent command using the sequence ‘!!’. Similarly, you can repeat the most recent command beginning with the letters xyz by typing ‘!xyz’.
You can scroll through the list of previously executed commands using the key C-p. Similarly you can scroll forward using C-n. If your keyboard has up-down arrow keys these will probably also work.
If you cannot remember the precise orthography of a command, then hitting the Tab key will show you a list of possible completions. For example hitting w and then Tab will show you all the commands which start with the letter ‘w’.