1 / 35

Chapter 05

Chapter 05. The Pep/7 instruction set at Level Asmb5. Please click on the following link Programsc05t02.GIF to view the instruction set. The unimplemented opcode instructions at Level Asmb5. Pseudo-Operations. An assembly language program to output Hi. The function of an assembler.

luella
Download Presentation

Chapter 05

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 05

  2. The Pep/7 instruction set at Level Asmb5 • Please click on the following link Programs\c05t02.GIF to view the instruction set.

  3. The unimplemented opcode instructions at Level Asmb5

  4. Pseudo-Operations

  5. An assembly language program to output Hi

  6. The function of an assembler

  7. The action of the Pep/7 assembler

  8. An assembly language program to input two characters and output them in reverse order Assembler Output D9 00 0D D9 00 0E E1 00 0E E1 00 0D 00 00 00 zz

  9. An assembly language program to add 3 and 5 and output the single-character result

  10. Two computer runs necessary for execution

  11. Immediate addressing • Oprnd = OprndSpec

  12. A program to output Hi using immediate addressing Output Hi

  13. A program to add 1 to a decimal value. It illustrates decimal I/O

  14. A program to add 1 to a decimal value. It illustrates decimal I/O (Cont’d)

  15. A program that interprets a value as decimal and as hexadecimal

  16. A program that interprets a value as decimal and as hexadecimal (Cont’d)

  17. Two assembly language programs that produce the same object code and, therefore, the same output

  18. Two assembly language programs that produce the same object code and, therefore, the same output (Cont’d)

  19. A program to add 1 to a decimal value

  20. A program to add 1 to a decimal value (Cont’d)

  21. A program that interprets a value as decimal and as hexadecimal

  22. A program that interprets a value as decimal and as hexadecimal (Cont’d)

  23. A nonsense program that illustrates the underlying von Neumann nature of the machine

  24. The function of a compiler

  25. The cout statement at Level HOL6 and Level Asmb5

  26. The cout statement at Level HOL6 and Level Asmb5 (Cont’d)

  27. A compiler that translates directly into machine language

  28. A compiler that translates into assembly language

  29. A compiler that translates to machine language

  30. A hypothetical compiler for illustrative purposes

  31. The assignment statement at Level HOL6 and Level Asmb5 • Please click on the following link Programs\c05p207_prog.GIF to view the appropriate program.

  32. The symbol table for a hypothetical compiler

  33. The symbol table for a Pep/99 compiler

  34. A program translating a C++ constant to machine language and illustrating the ASRR statement • Please click on the following link Programs\c05p211_prog.gif to view the appropriate program.

More Related