Motorola ColdFire MCF5282 User Manual Page 49

  • Download
  • Add to my manuals
  • Print
  • Page
    / 104
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 48
Chapter 3. Using the Monitor/Debug Firmware 3-7
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Commands
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 0x00010000, the command is:
asm 10000 nop
To interactively assembly memory at address 0x00400000, the command is:
asm 400000
Page view 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 103 104

Comments to this Manuals

No comments