Professional Documents
Culture Documents
LAB#2
2.1 Objective:
To learn the basic machine codes or opcodes of Intel 8086
2.2 Pre-Lab Reading:
Intel Microprocessors: Architecture, Programming and Interfacing, 8th Edition, BARRY B.
BREY, Chapter 4, Topic 4.1
2.3 Equipment:
Instruments MDA-Win 8086 Trainer
Kit
2.4 Code:
2.4.1: Mov A, #80H
2.4.2: Push AX
2.4.3: POP BX
2.4.4: PUSHF
2.4.5: POPF
2.4.6: ADD AH, 5
2.4.7: INC BH
2.4.8: JO
2.4.9: NEG
2.4.10: SUB BL, AH
2.6 Output:
2.5.1: A=80H
2.5.2: AX=55H and Top of stack=55H
1
21395
Microcontroller and Microprocessor lab 2
2
21395
Microcontroller and Microprocessor lab 2
2.8 Notes:
When two operands are required for an instruction they are separated by comma. For
example:
REG, memory
AL, DL
DX, AX
Mov BX,AX
Mov BX,[BI+SI]
Working
Lab Performance
Viva
Instructor's Verification
3
21395