This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: executing the following code ? AX = 4301 BX = FEBC DS:020 = 01 DS:021 = 43 DS:022 = BC DS:023 = FE Question 3 [19 marks] (a) [ 3 marks] Data transfer: MOV Data Manipulation and/or Arithmetic and Logic : CMP/SUB/ADD Control Transfer: JMP, J*, CALL (b) [3 marks] Left: Statically bound during compilation and loaded into memory when program is loaded. Right: Runtime execution of the instruction (c) [3 mark] Register Indirect, Direct and Based-Index with Displacement (d) [10 marks] MOV BX, 0 N e x t : CMP BX, 12*2 JAE notFound MOV AX, [BX]NUMBERS AND AX, 00000001b JNZ found ADD BX, 2 JMP next found: MOV AX, BX SHR BX, 1 JMP done notFound: MOV AX, -1 done: …....
View Full Document
This note was uploaded on 09/21/2009 for the course SYSC 3006 taught by Professor Yuuono during the Summer '09 term at Carleton.
- Summer '09