Arithmetic and Logic Instructions: Task Performance
Arithmetic and Logic Instructions: Task Performance
Arithmetic and Logic Instructions: Task Performance
Task Performance
Arithmetic and Logic Instructions
Objective(s):
2. MOV AX, 614Bh What would be the value of AX after program execution? ___________
MOV BX, 1251h
OR AX, BX
RET
3. MOV AX, 614Bh What would be the value of BX after program execution? ___________
MOV BX, 1251h
XOR BX, AX
RET
4. MOV DX, 614Bh What would be the value of DX after program execution? ___________
NOT DX
RET
5. MOV AX, 614Bh What would be the value of AX after program execution? ___________
MOV BX, 1251h
AND AX, BX
NOT BX
XOR AX, BX
RET
2. MOV AX, AAAAh In hexadecimal format, what would be the value of AX after program
MOV CL, 8 execution? ___________
SHL AX, CL
RET
3. MOV AL, 8Ch What would be the value of AL, in binary form, after program execution?
MOV CL, 3 ___________
SAR AL, CL
RET
4. MOV AL, 6Bh In hexadecimal format, what would be the value of AL after program
ROR AL, 1 execution? ___________
ROL AL, 3
RET
5. MOV AX, 6Bh What would be the value of AL, in binary form, after program execution?
RCR AL 3 ___________
RET