1 / 8

LMC Assembly

LMC Assembly. Making Programming Friendlier. Machine Code Issues. Have to remember numeric opcodes Have to think about physical memory locations What if I need to add 6 lines of code to this program?. Assembly. Assembly Code : human readable machine code. Assembly.

jadyn
Download Presentation

LMC Assembly

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. LMC Assembly Making Programming Friendlier

  2. Machine Code Issues • Have to remember numeric opcodes • Have to think about physical memory locations • What if I need to add 6 linesof code to this program?

  3. Assembly • AssemblyCode : human readable machine code

  4. Assembly • Assembly Instructions:

  5. No XX • Assembly can use names for memory locations • Location FIRST instead of 07 • Identify data locations as instructions after program • NAMEDAT Value?

  6. Named Locations • Named locations not affected by adding/removing code Ex: Add EXTRA lines • Assembly fine • Machine version broken

  7. Names And Branch • Any instruction can start with NAME • Use as target of branch: • #1This is called LOOPSTARTWe add one to accumulator • #3Branch to the instructionnamed LOOPSTART

  8. Assembler • An Assembler converts assembly  machine code • Compiles it http://www.yorku.ca/sychen/research/LMC/LittleMan.html

More Related