
M5253EVBE Users Manual, Rev. 1
2-6
Freescale Semiconductor
2.4.1
ASM (Assembler)
Usage: ASM <<addr> stmt>
The ASM command is a primitive assembler. The <stmt> is assembled and the resulting code placed at
<addr>. This command has an interactive and non-interactive mode of operation.
The value for address <addr> may be an absolute address specified as a hexadecimal value, or a symbol
name. The value for stmt must be valid assembler mnemonics for the CPU.
For the interactive mode, the user enters the command and the optional <addr>. If the address is not
specified, then the last address is used. The memory contents at the address are disassembled, and the user
prompted for the new assembly. If valid, the new assembly is placed into memory, and the address
incremented accordingly. If the assembly is not valid, then memory is not modified, and an error message
produced. In either case, memory is disassembled and the process repeats.
The user may press the <Enter> or <Return> key to accept the current memory contents and skip to the
next instruction, or a enter period to quit the interactive mode.
In the non-interactive mode, the user specifies the address and the assembly statement on the command
line. The statement is the assembled, and if valid, placed into memory, otherwise an error message is
produced.
Examples:
To place a NOP instruction at address 0x0001_0000, the command is:
asm 10000 nop
MMAP
mmap
Memory Map Display
RD
rd <reg>
Register Display
RM
rm reg data
Register Modify
RESET
reset
Reset
SD
sd
Stack Dump
SET
set <option value>
Set Configurations
SHOW
show <option>
Show Configurations
STEP
step
Step (Over)
SYMBOL
symbol <symb> <-a symb value> <-r symb> <-C|l|s> Symbol Management
TRACE
trace <num>
Trace (Into)
UPDBUG
updbug
Update dBUG
UPUSER
upuser <bytes>
Update User Flash
VERSION
version
Show Version
Table 2-1 dBUG Command Summary (Continued)
Mnemonic
Syntax
Description