8086 Assembly: final assessment

This covers the whole course. Take it after the last module.

Final quiz

1. What do the instructions MOV AH, 4CH and INT 21H do together?
2. What is the character code of the digit 0?
3. Why can MOV X, Y not be used to copy one variable into another?
4. AL = 200 and BL = 100. After ADD AL, BL, what are AL and CF?
5. How many bytes does ARR DW 10 DUP(0) reserve?
6. AL = 0FFh and BL = 1. After CMP AL, BL, which jump is taken if the values are signed numbers?
7. CX = 0 when a LOOP loop starts, with no JCXZ before it. How many times does the body run?
8. AL = 9 and BL = 9. After MUL BL, where is the product and what is it?
9. What does SAR AL, 1 give for AL = 0FCh, which is −4 as a signed byte?
10. A program does PUSH AX, PUSH BX, PUSH CX and then POP AX, POP BX, POP CX. Where does the old value of CX end up?
11. What does RET do?
12. After CLD and REP MOVSW with CX = 4, by how much have SI and DI changed in all?
13. After REPE CMPSB, ZF = 1. What does it mean?
14. What does AAM give for AL = 56?
15. CX = 3, DF = 0, SI points at 'abcdef' and DI at 'abxdef'. What are CX and ZF after REPE CMPSB?
16. A program prints 2025 by dividing by 10 repeatedly. Why are the digits printed in the right order?

Practical assessment: A calculator in assembly language

Write a complete 8086 program that reads two digits and an operator, performs the operation with the right instruction and prints the result, including the case of a result with two digits and a division by zero.

Final project

A one-digit calculator: Write a program that reads two digits and an operator (+, -, * or /), and prints the result, so that it uses input, comparisons and jumps, and the arithmetic instructions.

How it is evaluated

To complete this course