CSc 343
Computer Organization and Programming
Fall Quarter 1997
Quiz #2 (17 October 1997, Friday) with Solutions
MOV AX,2000H MOV BX,AX ADD BX,AX ADD BX,AX AX: _2000H___ BX: __6000H___
DB 'ABC' _41_ _42_ _43_ ____ DB 110100B _34_ ____ ____ ____ DW 2 DUP(524) _0C_ _02_ _0C_ _02_
(a) ADD AX,100 A. Valid B. Not Valid VALID (b) MOV AX,BL A. Valid B. Not Valid NOT VALID (c) MOV 1,BX A. Valid B. Not Valid NOT VALID (d) ADD CX,DX A. Valid B. Not Valid VALID (e) SUB AX,[VARX] ;VARX IS DEFINED AS A WORD SIZE VARIABLE A. Valid B. Not Valid VALID
IP = 020C CS = 1000 SP = 0100 AX = 1234 DS = 1800 BP = 1ACB BX = 1020 SS = 2000 SI = 0040 CX = ABCD ES = 2400 DI = 00E0 DX = 01FE
A. 020C B. 120C C. 1020C D. 20100 E. None of the previous ANSWER: C (1020C)
A. 01A4 B. 19A4 C. 101A4 D. 181A4 E. None of the previous ANSWER: D (181A4)
ADD AX,CX A. BE01 B. ABCD C. 1234 D. 0000 E. None of the previous ANSWER: A (BE01)
ADD BL,DL A. 111E B. 001E C. 110E D. 101E E. None of the previous ANSWER: D (101E)