Download presentation
Presentation is loading. Please wait.
Published byBritney McCarthy Modified over 9 years ago
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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.