Motorola MVME2600 Series User Manual Page 322

  • Download
  • Add to my manuals
  • Print
  • Page
    / 518
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 321
Entering and Modifying Source Programs
4-12
4
(always hexadecimal) is returned. Because the disassembler gives
precedence to instructions, a word of data that corresponds to a
valid instruction will be returned as the instruction.
Entering a Source Line
A new source line is entered immediately following the
disassembled line, using the format discussed in the section on
Source Line Format:
PPC1-Bug>AS 20000 <CR>
00020000 3C600004 ADDIS R3,R0,$4? ORI R3,R0,4 <CR>
When the carriage return is entered terminating the line, the old
source line is erased from the terminal screen, the new line is
assembled and displayed, and the next instruction in memory is
disassembled and displayed.
00020000 60030004 ORI R3,R0,$4
00020004 60631000 ORI R4,R4,$1000? <Return>
If a printer is being used, port 0 should be reconfigured as the
printer port (hardcopy mode) for proper operation (refer to the PF
command in Chapter 3). In this case, the above example would look
as follows:
PPC1-Bug>AS 20000 <Return>
00020000 3C600004 ADDIS R3,R0,$4? ORI R3,R0,4 <Return>
00020000 60030004 ORI R3,R0,$4
00020004 60631000 ORI R4,R4,$1000? <CR>
Another program line can now be entered. Program entry
continues in like manner until all lines have been entered.
Enter a period to exit either the MM or AS command.
If an error is encountered during assembly of the new line, an error
message will be displayed. The location being accessed is
redisplayed.
PPC1-Bug>AS 30000 <CR>
00030000 3CA00000 ADDIS R5,R0,$0? ORU R5,R0,1 <Return>
Assembler Error: Unknown Mnemonic
00030000 3CA00000 ADDIS R5,R0,$0?
Page view 321
1 2 ... 317 318 319 320 321 322 323 324 325 326 327 ... 517 518

Comments to this Manuals

No comments