p (Program Step)

Syntax

p [[r]] [[= startaddress]] [[repeat]]

Executes an instruction, then displays the current values of all registers and flags.

The r flag toggles display of register values.

If startaddress is given, the debugger starts execution at the given address. Otherwise, the debugger starts execution at the instruction pointed to by the instruction pointer.

If repeat is given, the debugger executes repeat number of instructions before stopping. The debugger automatically executes and returns from any call instructions or software interrupts it encounters, leaving execution control at the next instruction after the call or interrupt.

In disassembled or mixed mode, the p command steps one machine instruction; in source mode, the p command steps one source line.