You are on page 1of 3

CSC159

ASSEMBLY LANGUAGE

LAB EXERCISE 1

STUDENT NAME : _______________________

STUDENT NO : _______________________

STUDENT GROUP : _______________________

INSTRUCTIONS:

1. Give the content of the registers involved. Please refer to Assembly language
instructions command for MOV, XCHG, ADD, SUB, INC and DEC.
2. Execute the instructions manually first then check your answer using EMU8086
emulator. Show your work.
3. Save your file using this format: STUDENTNAME_ LAB EX1.PDF

NO INSTRUCTIONS AX BX

1. MOV AX, 023Ch 023C

MOV BX, 016Bh 016B

ADD AX, BX ????

2. MOV AX, 62

MOV BX, 85

ADD AX, BX

ADD AX, 25
3. MOV AX, 32C4h

MOV BX, 245Eh

XCHG AX, BX

ADD BX, 002Bh

ADD AX, BX

4. MOV AX, 120

ADD AX, 25

MOV BX , 40

SUB AX, BX

5. MOV AX, 70

MOV BX, 35

INC AX

SUB AX, BX

6. MOV AX, 0011110010111111b

MOV BX, 1100110110111000b

DEC BX

INC AX

7. MOV AX, 20

MOV BX, 5
MUL BX

8. MOV AX, -20

MOV BX, 5

IMUL BX

9. MOV AX, 40

MOV BX, 2

DIV BX

10. MOV AX, -40

MOV BX, 2

IDIV BX

You might also like