Lab Exp 1
Lab Exp 1
Abstract:
Main purpose of this experiment was study about emulator EMU8086 and microprocessor
8086.Four codes are implementedwith EMU8086 to study it’s operation. After that it was
complied with MASM software. MASM converts source code to object code. The object code
was introduced to the microprocessor 8086 using MTS-86C.
Introduction:
Equipments:
2. EMU8086
Precautions:
Programs:
The following codes were written down in source code and the MASM software compiled and
gave an output of object code:
MOV AX,1234H
0000 B8 1234
MOV BX,5678H
0003 BB 5678
MOV CX,AX
0006 8B C8
MOV AX, BX
0008 8B C3
MOV BX,CX
000A 8B D9
HLT
000C F4
CODE ENDS
000D
END
P2:Here ,AX=1234H; BX=5678H
MOV AX,1234H
0000 B8 1234
MOV BX,5678H
0003 BB 5678
HLT
000CF4
CODE ENDS
000D
END
P3:Here ,BX=1234H ; CX=5678H ; BX=(1234+5678)H=68ACH
Source Code
Object code
CODE SEGMENT
0000
ASSUME CS:CODE,
DS:CODE
MOV BX,1234H
0000 BB 1234
MOV CX, 5678H
0003 B9 5678
ADD BX,CX
0006 03 D9
HLT
000E F4
CODE ENDS
END
MOV BX,1234H
0000 BB 1234
MOV CX, 5678H
0003 B9 5678
SUB CX,BX
0006 2B CB
HLT
000E F4
CODE ENDS
000F
END
Discussion:a
Conclusion:
All codes are written in microprocessor 8086 and MTS-86C and we got the same results.