The l command disassembles and display instructions in memory.

Command Format

l [-bc] [addr[cnt]]


-b list only branch instructions
-c list only call instructions
addr address where disassembly should start
cnt disassemble cnt instructions and then stop

Invoking the l command with no options starts disassembly from the location given by CPC until quit from 'more' is done.

Functional description

The l command is used to examine memory by disassembling machine code into human readable text. If a starting address is not specified, disassembly starts at the current value of the CPC register. Otherwise the disassembly starts at the address given in the addr argument. The output is sent through 'more' and quitting more terminates the command. The cnt argument can be used to disassemble cnt number of instructions and then stop. When the cnt argument is given the output is not sent through 'more' but all lines are output until all lines have been printed.

On some targets the l command can be told to only list branch and/or call instructions. This is useful when the program flow is to be examined. The -boption is used to select branches while the -c option select calls.

The output of the disassembly command is highly target architecture dependent.


The command uses no environment variable.

See Also

The dump (d) and more commands.

Powered by Drupal, an open source content management system