1 / 22

Simplesem

Explore SimpleSim programs on a simulated machine, delve into Assembly Language coding for the simulated environment, manage Instruction Pointer, Code Memory, and Data Memory Set efficiently.

tlucia
Download Presentation

Simplesem

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. Simplesem By B. Hosp

  2. Simplesem • Programs to run on a simulator • Assembly Language for that simulated machine • Instruction Pointer • Code Memory • Data Memory

  3. Set • Analogous to STORE instruction • set n, data • or set n, read for input • or set n, expression • set 5, 20 • set 5, (D[20] * D[0]) / (D[10]) • Also indirect addressing: • set D[15] read

  4. Jump • Unconditional Jump • jump n or jump D[i] • Conditional Jump • jumpt address, expression • jumpt 5, D[0] = D[2]

  5. Etc • Halt • Write • set write, expression • set write, read • reads from input and echoes to output.

  6. Sample ProgramSum a list

  7. Trace

  8. Trace

  9. Trace

  10. Trace

  11. Trace

  12. Trace

  13. Trace

  14. Trace

  15. Trace

  16. Trace

  17. Trace

  18. Trace

  19. ...

  20. Trace

  21. Trace

  22. Trace

More Related