1 / 8

Computer Architecture

This guide covers essential concepts in Microsoft Assembler, focusing on internal and external procedures, initialization, and effective code importation. Learn about key calling conventions for procedures like ReadString and ReadInt, and understand how registers relate to variable sizes. Explore how to compare objects using CMP instructions, implement conditional jumps, and the significance of fall-through statements. Practical assignments provide hands-on experience using skeleton programs to reinforce learning and apply these concepts in real-world applications.

denzel
Télécharger la présentation

Computer Architecture

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. Computer Architecture Microsoft Assembler

  2. Procedures • Internal • External • Speeds learning • Importing .code extrn Clrf:proc, Readstring:proc main proc

  3. Cont.. procedures • Calling call Readstring call Readint • Initialization • What do you ask ?

  4. Cont.. procedures • Which registers? • Reg sizes = var sizes? • Data saved?

  5. “if” • Compare 2 objects • 2 outcomes cmp ax, bx cmp ax, 97

  6. “hop-a-long” • Goto • Jump to labels jmp looplabel • Conditional jumps • a jump that needs a condition • condition …cmp statement • “fall through”

  7. Conditional Statements Explain! mov ax, 5 mov bx, 7 cmp ax, bx jg lessthan jmp greaterthan

  8. Practical Assignment • Plan! • Use the skeleton program (1st prac) • Cut relevant code from 2nd prac eg.

More Related