Professional Documents
Culture Documents
Lab Manual: Department of Electronics Engineering
Lab Manual: Department of Electronics Engineering
Lab Manual: Department of Electronics Engineering
LAB MANUAL
Semester-IV
Microprocessor and Peripherals Laboratory
Mission
The Institution is committed to mobilize the resources and equip itself with men and
materials of excellence thereby ensuring that the Institution becomes pivotal center of
service to Industry, academia, and society with the latest technology. RAIT engages
different platforms such as technology enhancing Student Technical Societies, Cultural
platforms, Sports excellence centers, Entrepreneurial Development Center and Societal
Interaction Cell. To develop the college to become an autonomous Institution & deemed
university at the earliest with facilities for advanced research and development programs
on par with international standards. To invite international and reputed national
Institutions and Universities to collaborate with our institution on the issues of common
interest of teaching and learning sophistication.
Quality Policy
Mission
ii
Index
Sr. No.
Contents
Page No.
1.
List of Experiments
2.
3.
4.
Experiment No. 1
5.
Experiment No. 2
11
6.
Experiment No. 3
19
7.
Experiment No. 4
24
8.
Experiment No. 5
28
9.
Experiment No. 6
32
10.
Experiment No. 7
36
11.
Experiment No. 8
40
12.
Experiment No. 9
44
13.
Experiment No. 10
48
14.
54
15.
57
iii
List of Experiments
Sr. No.
Experiments Name
To write an Assembly Language Program for performing unpacking of the packed BCD
number.
To write an Assembly Language Program to find the largest number in a given array.
To write an Assembly Language program to find even and odd number from given
numbers.
10
To introduce students about basic working & functions of 8085 & 8086 microprocessors.
CO2
To analyze and implement various instructions and Assembly language programs of 8086
microprocessor.
CO3
Module
No.
Week
No.
W1
CO1
W2
CO1
W3
CO2
W4
CO2
W5
CO2
W6
CO2
W7
CO2
W8
CO2
W9
CO2
10
W10
CO3
Experiments Name
Course
Outcome
Course Name
Code
EXL
402
Microprocessor
and peripherals
laboratory
Course Code
EXL
Teaching Scheme
Theory
Credits Assigned
Practical
Tutorial
Theory
Practical
Tutorial
Total
02
--
--
01
--
01
Course Name
Examination Scheme
Term Work
Oral
Total
25
25
50
Microprocessor
and peripherals
laboratory
402
Term Work:
1. Term work assessment must be based on the overall performance of the student with every
experiment graded from time to time. The grades should be converted into marks as per the
Credit and Grading System manual and should be added and averaged.
2. The final certification and acceptance of term work ensures satisfactory performance of
laboratory work and minimum passing marks in term work.
Oral:
Oral exam will be based on the entire syllabus.
Experiment No : 1
Experiment No. 1
1. Aim: To study 8085 Microprocessor and write a program in assembly language to
perform 8-bit addition and subtraction on 8085 Dyna Kit.
2. What you will learn by performing this experiment ?
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
8085 Dyna Kit
3 MHz
C000-FFFF
5V
4. Theory:
The Intel 8085 is an 8-bit microprocessor produced by Intel and introduced in 1976. It is
software-binary compatible with the more-famous Intel 8080 with only a few minor instructions
added. However, it requires less support circuitry, allowing simpler and less
expensive microcomputer systems to be built. 8085 uses a single +5 Volt (V) power supply by
using depletion mode transistors. The 8085 is supplied in a 40-pin DIP package. To maximize
the functions on the available pins, the 8085 uses a multiplexed address/data bus. However, an
8085 circuit requires an 8-bit address latch so Intel manufactured several support chips with an
address latch built in. These include the 8755, with an address latch, 2 KB of EPROM and 16 I/O
pins, and the 8155 with 256 bytes of RAM, 22 I/O pins and a 14 bit programmable
Timer/Counter. The multiplexed address/data bus reduced the number of PCB tracks between the
8085 and such memory and I/O chips.
Features :
a)
b)
c)
d)
e)
Single + 5V Supply
4 Vectored Interrupts (One is Non Maskable)
Serial In/Serial Out Port
Decimal, Binary, and Double Precision Arithmetic
Direct Addressing Capability to 64K bytes of memory
5
Interrupt Pins : It means interrupting the normal execution of the microprocessor When
microprocessor receives interrupt signal, it discontinues whatever it was executing. It starts
executing new program indicated by the interrupt signal. Interrupt signals are generated by
external peripheral devices .After execution of the new program, microprocessor goes back to
the previous program.
TRAP : It is an non-maskable interrupt. It has the highest priority. It cannot be disabled. It is
both edge and level triggered. It means TRAP signal must go from low to high. It means TRAP
signal must go from low to high and must remain high for a certain period of time.
Architecture of 8085 : The architecture of 8085 is shown in figure 2.
1
4
1
3
1
2
1
1
1
0
0
9
0
8
0
7
0
6
0
5
0
4
0
3
0
2
0
1
0
0
(bit position)
Main registers
A
Flags
AF (accumulator and
flags)
BC
DE
HL (indirect address)
Index registers
SP
Stack Pointer
PC
Program Counter
Program counter
Status register
S Z I H - P - C Flags
7. Observation Table:
For Addition :
Sr. No.
Input1
Register/Memory
Input2
Output
Register/Memory Register/Memory
Flags Affected
Input2
Output
Register/Memory Register/Memory
Flags Affected
For Subtraction :
Sr. No.
Input1
Register/Memory
9. Conclusion:
11. References:
1. http://www.nptel.ac.in/courses/Webcourse-contents/IIScBANG/Microprocessors%20and%20Microcontrollers/pdf/Lecture_Notes/LNm1.pdf
2. http://8085microprocessor4u.blogspot.in/2012/12/architecture-diagram-of-8085.html
3. http://www.slideshare.net/anupamkumarpandit/list-of-8085-programs
4. http://www.eazynotes.com/pages/microprocessor/8085-programs.html
5. http://user.das.ufsc.br/~werner/eel7030/8085/instrucoes8085Detalhadas.pdf
10
11
Experiment No. 2
1. Aim: To study 8086 Microprocessor and write a program in assembly language to
perform 8-bit addition and subtraction on 8086 Dyna Kit.
2. What you will learn by performing this experiment?
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
Dyna 8086L
8 MHz
C000-FFFF
+5V with 3 Amps
+12V with 250 mA
-12V with 250 mA
4. Theory:
Features :
It is a 16-bit p.
8086 has a 20 bit address bus can access up to 220 memory locations (1 MB).
It can support up to 64K I/O ports.
It provides 14, 16 -bit registers.
Word size is 16 bits.
It has multiplexed address and data bus AD0- AD15 and A16 A19.
It requires single phase clock with 33% duty cycle to provide internal timing .
8086 is designed to operate in two modes, Minimum and Maximum.
It requires +5V power supply.
A 40 pin dual in line package.
Address ranges from 00000H to FFFFFH
Memory is byte addressable - Every byte has a separate address.
12
13
S3
Segment Register
Extra
Stack
Code / none
Data
14
15
16
6. Procedure :
Follow the procedure as given in Appendix II for Dyna-8086 kit .
7. Observation Table:
For Addition
Sr. No.
Input1
Register/Memory
Input2
Output
Register/Memory Register/Memory
Flags Affected
17
Input2
Output
Register/Memory Register/Memory
Flags Affected
8. Precautions :
Do not keep the kit ON for long time.
Switch off the Kits after implementing the program.
9. Conclusion :
Distinguish between the lower sixteen address lines from the upper four ?
18
19
Experiment No. 3
1. Aim: To write an Assembly Language Program (ALP) for performing multiplication and
division operation of 16-bit numbers.
2. What you will learn by performing this experiment ?
Learn about arithmetic instructions of 8086 Microprocessor.
To explore the applications of 8086 Microprocessor
Able to write programs based on 8086 Microprocessor.
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
Dyna 8086L
8 MHz
C000-FFFF
+5V with 3 Amps
+12V with 250 mA
-12V with 250 mA
4. Theory: .
MOV MOV Destination, Source
The MOV instruction copies a word or byte of data from a specified source to a specified
destination. The destination can be a register or a memory location. The source can be a register,
a memory location or an immediate number. The source and destination cannot both be memory
locations. They must both be of the same type (bytes or words). MOV instruction does not affect
any flag.
MOV CX, 037AH
MOV BL, [437AH]
MOV AX, BX
MOV DL, [BX]
MOV DS, BX
Input1
Register/Memory
Input2
Output
Register/Memory Register/Memory
Flags Affected
For Division :
Sr. No.
Input1
Register/Memory
Input2
Output
Register/Memory Register/Memory
Flags Affected
8. Precautions :
Do not keep the kit on for long time.
Switch off the Kits after implementing the program.
22
What is an instruction?
23
24
Experiment No. 4
1. Aim: To write an Assembly Language Program for performing unpacking of the packed
BCD number.
2. What you will learn by performing this experiment?
Learn about BCD number.
To explore the applications of 8086 Microprocessor
Able to write programs based on BCD numbers in 8086 Microprocessor.
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
Dyna 8086L
8 MHz
C000-FFFF
+5V with 3 Amps
+12V with 250 mA
-12V with 250 mA
4. Theory:
Unpacking of BCD numbers uses following instructions :
AND AND Destination, Source
This instruction ANDs each bit in a source byte or word with the same numbered bit in a
destination byte or word. The result is put in the specified destination. The content of the
specified source is not changed. The source can be an immediate number, the content of a
register, or the content of a memory location. The destination can be a register or a memory
location. The source and the destination cannot both be memory locations. CF and OF are both 0
after AND. PF, SF, and ZF are updated by the AND instruction. AF is undefined. PF has
meaning only for an 8-bit operand.
AND CX, [SI]
AND BH, CL
AND BX,00FFH
OR OR Destination, Source
This instruction ORs each bit in a source byte or word with the same numbered bit in a
destination byte or word. The result is put in the specified destination. The content of the
specified source is not changed. The source can be an immediate number, the content of a
register, or the content of a memory location. The destination can be a register or a memory
25
NOT-NOT Destination
The NOT instruction inverts each bit (forms the 1s complement) of a byte or word in the
specified destination. The destination can be a register or a memory location. This instruction
does not affect any flag.
NOT BX
NOT BYTE PTR [BX]
5. Algorithm of unpacking of packed BCD number :
1) Initialize Data Segment
2) Initialize Source Index
3) Load Data
4) Move data from AL to AH
5) Masking higher byte of AX
6) Masking lower byte of AX
7) Initialize count
8) Rotate contents of AH with 04 times
9) Store the result
10) Terminate the program
26
Input
Register/Memory
Output
Register/Memory
Flags Affected
8. Precautions :
Do not keep the kit on for long time.
Switch off the Kits after implementing the program.
9. Conclusion :
Write the special functions carried by the general purpose registers of 8086.
List the segment registers ?
Explain packing of BCD number ?
What is the drawback in machine language and assembly language programs?
How many machine cycles constitute one instruction cycle in 8086?
Explain BCD subtraction.
What is the difference between a mnemonic code and machine code?
Explain the logical instruction of 8086?
11. References:
1. http://www.eazynotes.com/pages/microprocessor/8086-programs.html
2. http://www.slideshare.net/HassnainJamil/mul-div-instructions-in-assembly-language
3. http://www.ukessays.com/essays/engineering/assembler-directive-of-8086microprocessor.php
4. http://nptel.ac.in/courses/106108100/pdf/Teacher_Slides/mod2/M2L2.pdf
5. http://iitestudent.blogspot.in/2012/03/assembler-directives-of-80868088.html
27
28
Experiment No. 5
1. Aim: To write an Assembly Language Program to find the largest number in a given
array.
2. What you will learn by performing this experiment ?
Learn about logical, arithmetic and conditional instructions of 8086.
To explore the applications of 8086 Microprocessor
Able to write programs based on searching and sorting in 8086 Microprocessor.
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
Dyna 8086L
8 MHz
C000-FFFF
+5V with 3 Amps
+12V with 250 mA
-12V with 250 mA
4. Theory:
Following instructions are used for finding largest and smallest number in a given array :
CMP CMP Destination, Source
This instruction compares a byte / word in the specified source with a byte / word in the specified
destination. The source can be an immediate number, a register, or a memory location. The
destination can be a register or a memory location. However, the source and the destination
cannot both be memory locations. The comparison is actually done by subtracting the source
byte or word from the destination byte or word. The source and the destination are not changed,
but the flags are set to indicate the results of the comparison. AF, OF, SF, ZF, PF, and CF are
updated by the CMP instruction.
CMP AL,01H
CMP BH, CL
CMP CX, TEMP
CMP PRICES [BX], 49H
29
5. Algorithm :
Output
Register/Memory
Flags Affected
8. Precautions :
Do not keep the kit on for long time.
Switch off the Kits after implementing the program.
9. Conclusion :
32
Experiment No. 6
1. Aim: To write an Assembly Language Program to convert ASCII character to Hex
character.
2. What you will learn by performing this experiment ?
Learn how conversion is done in 8086 Microprocessor.
To explore the applications of 8086 Microprocessor
Able to write programs based on ASCII conversion in 8086 Microprocessor.
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
Dyna 8086L
8 MHz
C000-FFFF
+5V with 3 Amps
+12V with 250 mA
-12V with 250 mA
4. Theory:
JAE / JNB / JNC
(JUMP IF ABOVE OR EQUAL / JUMP IF NOT BELOW / JUMP IF NO CARRY)
If, after a compare or some other instructions which affect flags, the carry flag is 0, this
instruction will cause execution to jump to a label given in the instruction. If CF is 1, the
instruction will have no effect on program execution.
CMP AX, 4371H
JAE NEXT
ADD AL, BL
JNC NEXT
33
5. Algorithm :
Load the input data in AL register.
Subtract 30 from AL register value.
If data is less than or equal to 16 terminate the program.
Else subtract 7 from AL register value.
Result stored in AL register.
6. Procedure :
Follow the procedure as given in Appendix II for Dyna-8086 kit .
7. Observation Table :
Sr. No.
Input
Register/Memory
Output
Register/Memory
Flags Affected
8. Precautions:
Do not keep the kit on for long time.
Switch off the kits after implementing the program.
9. Conclusion :
34
11. References:
1.
2.
3.
4.
5.
http://www.eazynotes.com/pages/microprocessor/8086-programs.html
http://www.dnatechindia.com/8-bit-HEX-to-ASCII-Convertor.html
http://forums.codeguru.com/showthread.php?410867-Converting-AscII-to-Hex
http://nptel.ac.in/courses/106108100/pdf/Teacher_Slides/mod2/M2L2.pdf
http://iitestudent.blogspot.in/2012/03/assembler-directives-of-80868088.html
35
36
Experiment No. 7
1. Aim: To write an Assembly Language program to find even and odd number from given
numbers.
2. What you will learn by performing this experiment ?
Learn how to find type of number in 8086 Microprocessor.
To explore the applications of 8086 Microprocessor
Able to write programs based on even and odd number in 8086 Microprocessor.
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
Dyna 8086L
8 MHz
C000-FFFF
+5V with 3 Amps
+12V with 250 mA
-12V with 250 mA
4. Theory:
ROL ROL Destination, Count
This instruction rotates all the bits in a specified word or byte to the left some number of bit
positions. The data bit rotated out of MSB is circled back into the LSB. It is also copied into CF.
In the case of multiple-bit rotate, CF will contain a copy of the bit most recently moved out of
the MSB.
The destination can be a register or a memory location. If you to want rotate the operand by one
bit position, you can specify this by putting 1 in the count position in the instruction. To rotate
more than one bit position, load the desired number into the CL register and put CL in the
count position of the instruction. ROL affects only CF and OF. OF will be a 1 after a single bit
ROL if the MSB was changed by the rotate.
37
The destination can be a register or a memory location. If you want to rotate the operand by one
bit position, you can specify this by putting 1 in the count position in the instruction. To rotate by
more than one bit position, load the desired number into the CL register and put CL in the
count position of the instruction. ROR affects only CF and OF. OF will be a 1 after a single bit
ROR if the MSB was changed by the rotate.
ROR BL, 1
Rotate all bits in BL right 1 bit position LSB to MSB and to CF
MOV CL, 08H
Load CL with number of bit positions to be rotated
ROR WORD PTR [BX], CL Rotate word in DS at offset [BX] 8 bit position right
5. Algorithm :
Initialize the pointer to memory for data and result.
Loaded the data in AL register from memory.
Rotate the AL register by one bit.
If carry flag is set then go to step2.
Store the even number as a result into the Memory.
6. Procedure :
Follow the procedure as given in Appendix II for Dyna-8086 kit .
38
Output
Register/Memory
Flags Affected
8. Precautions :
Do not keep the kit on for long time.
Switch off the Kits after implementing the program.
9. Conclusion :
11. References:
1. http://www.eazynotes.com/pages/microprocessor/8086-programs.html
2. http://80864beginner.com/Sample-Code/Bit-manipulation-instruction/8086-AssemblyLanguage-Program-for-given-data-is-odd-or-even.html
3. http://buzz4micro.blogspot.in/2009/12/program-to-check-if-given-number-is-odd.html
4. http://nptel.ac.in/courses/106108100/pdf/Teacher_Slides/mod2/M2L2.pdf
5. http://iitestudent.blogspot.in/2012/03/assembler-directives-of-80868088.html
39
40
Experiment No. 8
1. Aim: To write an Assembly Language Program to transfer block of data from 0000:C200
to 0000:C100.
2. What you will learn by performing this experiment ?
Learn about data transfer function of 8086.
To explore the applications of 8086 Microprocessor
Able to write programs based on transfer blocks, word in 8086 Microprocessor.
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
Dyna 8086L
8 MHz
C000-FFFF
+5V with 3 Amps
+12V with 250 mA
-12V with 250 mA
4. Theory:
LODS / LODSB / LODSW (LOAD STRING BYTE INTO AL OR STRING WORD
INTO AX)
This instruction copies a byte from a string location pointed to by SI to AL, or a word from a
string location pointed to by SI to AX. If DF is 0, SI will be automatically incremented (by 1 for
a byte string, and 2 for a word string) to point to the next element of the string. If DF is 1, SI will
be automatically decremented (by 1 for a byte string, and 2 for a word string) to point to the
previous element of the string. LODS does not affect any flag.
CLD
MOV SI, OFFSET
LODS SOURCE
Note: The assembler uses the name of the string to determine whether the string is of type bye or
type word. Instead of using the string name to do this, you can use the mnemonic LODSB to tell
41
6. Procedure :
Follow the procedure as given in Appendix II for Dyna-8086 kit .
7. Observation table :
Sr. No.
Input
Register/Memory
(before execution)
Output
Register/Memory
(after execution)
Flags Affected
42
11. References:
1.
2.
3.
4.
5.
http://www.eazynotes.com/pages/microprocessor/8086-programs.html
http://nec.edu.np/faculty/chandrat/8086imp.pdf
http://jntuimplab.blogspot.in/2008/06/block-data-transfer-program-for-8086.html
http://nptel.ac.in/courses/106108100/pdf/Teacher_Slides/mod2/M2L2.pdf
http://ggnindia.dronacharya.info/EEEDept/Downloads/QuestionBank/Vsem/MP_Sec.C.2
.pdf
43
44
Experiment No. 9
1. Aim: To Write an Assembly Language Program to Calculate Nth Power.
2. What you will learn by performing this experiment ?
Learn how to calculate power in 8086 Microprocessor.
To explore the applications of 8086 Microprocessor
Able to write programs based on calculation of nth power 8086 Microprocessor.
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
Dyna 8086L
8 MHz
C000-FFFF
+5V with 3 Amps
+12V with 250 mA
-12V with 250 mA
4. Theory:
MUL MUL Source
This instruction multiplies an unsigned byte in some source with an unsigned byte in AL register
or an unsigned word in some source with an unsigned word in AX register. The source can be a
register or a memory location. When a byte is multiplied by the content of AL, the result
(product) is put in AX. When a word is multiplied by the content of AX, the result is put in DX
and AX registers. If the most significant byte of a 16-bit result or the most significant word of a
32-bit result is 0, CF and OF will both be 0s. AF, PF, SF and ZF are undefined after a MUL
instruction.
If you want to multiply a byte with a word, you must first move the byte to a word location such
as an extended register and fill the upper byte of the word with all 0s. You cannot use the CBW
instruction for this, because the CBW instruction fills the upper byte with copies of the most
significant bit of the lower byte.
MUL BH
45
5. Algorithm :
6. Procedure :
Follow the procedure as given in Appendix II for Dyna-8086 kit.
7. Observation table :
Sr. No.
Input
Register/Memory
(before execution)
Output
Register/Memory
(after execution)
Flags Affected
46
47
48
Experiment No. 10
1. Aim : To Write an Assembly Language Program for Interfacing of 8255 (Programmable
Peripheral Interface) with 8086.
2. What you will learn by performing this experiment ?
Learn how to use 8086 Microprocessor with peripherals devices.
To explore the applications of 8086 Microprocessor
Able to write programs based on 8086 Microprocessor and 8255.
Interfacing of Microprocessor with different peripherals.
3. Apparatus Required:
Sr.
No.
1.
2.
3.
4.
Apparatus / Equipment
Kit
Operating Frequency
Memory
Power Supply
Specification
Dyna 8086L & Dyna 8255
8 MHz
C000-FFFF
+5V with 3 Amps
+12V with 250 mA
-12V with 250 mA
4. Theory:
Features of Dyna-PIO 8255
1.
2.
3.
4.
5.
6.
7.
8.
It is a programmable device.
It has 24 I/O programmable pins like PA,PB,PC (3-8 pins).
T T L compatible.
Compatible with Dyna-85, ILC-V2* , Star-85* , Dyna-86, Dyan-51 Kits.
Selection of I/O addresses through jumper.
Demo programs of all modes available.
Compatible programs based on different kits supported now available.
RST 5.5 , RST 6.5, RST 7.5 are provided onboard for interrupt driven modes. (For 8085
based Kits) Using 8255, all possible modes can be experimented.
9. PA0-PA7, PB0-PB7, PC0-PC7 LED indicators and test lug inputs with handshake signals.
10. User links and lugs provided for inputs with their legends
49
51
Initialization of 8255
Select I/P 2 as analog input.
Give start of conversion
Pulse to the ADC
Check for EOC by reading port C upper and rotate through carry
If EOC, read digital equivalent in AL
Terminate the program
52
Input
Output
8. Precautions :
Do not keep the kit on for long time.
Switch off the kits after implementing the program.
9. Conclusion :
53
54
Appendix I
Procedure to use Dyna-8085 Kit:
There are basically five types of steps which we have to follow for 8051 programming on
DYNA kit.
1) A Assemble Command
Syntax : A Starting Address
A Command accepts assembly language statements and assembles each statement into
executable machine code. These assembled machine codes are stored in a specified
memory on line by line basis at the time of entry.
Example: DYNA-85> A C000 (Enter)
0000:C000 MOV AX,0000
----INT 3
After executing assembly language statement press enter for next line.
2) U - Disassemble Command
Syntax: U Starting Address
The U command followed by the address disassembles the program from the specified
location. The U command translates machine instruction into assembly language
mnemonics.
Example: DYNA-85 > U C000
3) E Edit Memory
Syntax : E Starting Address
The E command allows you to examine and modify memory locations individually.
Ex. DYNA-85 > E D000
Press 'Enter' key to exit edit mode.
55
4) GO--Run Program
Syntax: GO Starting Address
The GO command is used to execute user program from the address stated in this
Command
DYNA-85> GO C000
break point
5) R
Syntax: R (Enter)
The R command is used to see the contents of all the registers.
DYNA-85> R (Enter)
5) D Display Memory
Syntax: D Starting Address
Selected area of addressable memory may be accessed and displayed by the D
command. The D command produces a formatted listing of the memory contents
between strt (starting address) and end (end address) inclusive on the display.Each line
of the listing begins with the address of the first memory location displayed on that
line, represented as 4 hexadecimal digits, followed by contents of 8 memory locations,
each one represented by 2 hexadecimal digits.
56
57
Appendix II
Procedure to use Dyna-8086 Kit:
There are basically five types of steps which we have to follow for 8051 programming on
DYNA kit.
1) A Assemble Command
Syntax : A Starting Address
A Command accepts assembly language statements and assembles each statement into
executable machine code. These assembled machine codes are stored in a specified
memory on line by line basis at the time of entry.
Example: DYNA-86> A C000 (Enter)
0000:C000 MOV AX,0000
----INT 3
After executing assembly language statement press enter for next line.
2) U - Disassemble Command
Syntax: U Starting Address
The U command followed by the address disassembles the program from the specified
location. The U command translates machine instruction into assembly language
mnemonics.
Example: DYNA-86 > U C000
3) E Edit Memory
Syntax : E Starting Address
The E command allows you to examine and modify memory locations individually.
Ex. DYNA-86 > E D000
Press 'Enter' key to exit edit mode.
58
Display Memory
Syntax: D Starting Address
Selected area of addressable memory may be accessed and displayed by the D
command. The D command produces a formatted listing of the memory contents
between strt (starting address) and end (end address) inclusive on the display.Each line
of the listing begins with the address of the first memory location displayed on that
line, represented as 4 hexadecimal digits, followed by contents of 8 memory locations,
each one represented by 2 hexadecimal digits.
59