Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Architecture Microsoft Assembler. Procedures Internal Internal External External Speeds learning Speeds learning Importing Importing.code extrn.

Similar presentations


Presentation on theme: "Computer Architecture Microsoft Assembler. Procedures Internal Internal External External Speeds learning Speeds learning Importing Importing.code extrn."— Presentation transcript:

1 Computer Architecture Microsoft Assembler

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

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

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

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

6 “hop-a-long” Goto Goto Jump to labels Jump to labels jmp looplabel Conditional jumps 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! Plan! Use the skeleton program (1 st prac) Use the skeleton program (1 st prac) Cut relevant code from 2 nd prac eg. Cut relevant code from 2 nd prac eg.


Download ppt "Computer Architecture Microsoft Assembler. Procedures Internal Internal External External Speeds learning Speeds learning Importing Importing.code extrn."

Similar presentations


Ads by Google