80 likes | 203 Views
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?
E N D
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? • Reg sizes = var sizes? • Data saved?
“if” • Compare 2 objects • 2 outcomes cmp ax, bx cmp ax, 97
“hop-a-long” • Goto • Jump to labels jmp looplabel • Conditional jumps • a jump that needs a condition • condition …cmp statement • “fall through”
Conditional Statements Explain! mov ax, 5 mov bx, 7 cmp ax, bx jg lessthan jmp greaterthan
Practical Assignment • Plan! • Use the skeleton program (1st prac) • Cut relevant code from 2nd prac eg.