Objective:: Lab#8: Access Memory of A Trainer Board SSUET/QR/114
Objective:: Lab#8: Access Memory of A Trainer Board SSUET/QR/114
Objective:: Lab#8: Access Memory of A Trainer Board SSUET/QR/114
LAB#8
Objective:
To understand the concept of how to access a memory of trainer 8086 and
understand some Assembly instructions.
Theory:
How to retrieve data from memory. Put some data on memory location (e.g 200
and 300) and retrieve data to the specified location.
Memory
[200] 05
[201] 00
…..
….. [300]
06 [301]
00
…..
Code: ….
MOV AX,[200]
MOV BX,[300]
ADD AX,BX
MOV [200],BX
SUB AX,BX
Steps to follow:
1. First store some data on location number [200] e.g(0005)
2. Secondly store some data on location number [300] e.g(0006)
3. Then again set segment :offset (0000:1000)
4. Enter equivalent machine code of the above code.
5. Set again offset 0000:1000
6. Press STP and then REG
7. And verify result
Task#2:
THEORY:
Objective:
AL=AA,BL=F0,DL=8A,CL=03
Using MiDas 8086 trainer,find the value of AL at the end of the following instructions:
i) ADD AL, BL
ii) SUB AL,BL
iii) SHL DL,CL
iv) SHR DL,CL
v) AND AL,BL
vi) OR AL,BL
vii) XOR AL,BL
viii) NOT AL
Steps to follow:
i) Find the equivalent machine code of the above code.
ii) Enter machine code in the 8086 Trainer kit.
iii) Verify result using STP snd REG key
SOLUTION: