Objective:: Lab#8: Access Memory of A Trainer Board SSUET/QR/114

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

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

CE-207: Microprocessor and Microcontroller 38


Lab#8: Access memory of a trainer board SSUET/QR/114

Task#2:

THEORY:

SHL: Shift Logical Left:


Intel 80x86; shifts the contents of a data register or memory location (8, 16, or 32
bits) to the left (towards most significant bit) by a specified amount (by 1, by 0 to 31 bits specified by an
immediate operand.

SHR: Shift Logical Right:


Intel 80x86; shifts the contents of a data register or memory location (8, 16, or
32 bits) to the right (towards least significant bit) by a specified amount (by 1, by 0 to 31 bits specified by
an immediate operand.

Following lab will be perform on kit mode.

Objective:

Write a program to transfer following values in the specified registers

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

CE-207: Microprocessor and Microcontroller 39


Lab#8: Access memory of a trainer board SSUET/QR/114

SOLUTION:

CE-207: Microprocessor and Microcontroller 40

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy