1 / 8

Computer Architecture

Computer Architecture. Microsoft Assembler. Procedures. Internal External Speeds learning Importing .code extrn Clrf:proc, Readstring:proc main proc. Cont.. procedures. Calling call Readstring call Readint Initialization What do you ask ?. Cont.. procedures. Which registers?

denzel
Download Presentation

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