0% found this document useful (0 votes)
7 views

exp 3

The document outlines Experiment No. 3, which involves developing assembly language programs for the Vinytics Student-85 microcomputer kit using the ALP 8085. It includes specific subprograms for initializing registers, performing arithmetic operations, and generating Fibonacci series, along with a theoretical background, precautions, and detailed coding procedures. The experiment aims to enhance understanding of microcomputer operations and programming techniques related to the Intel 8085 microprocessor.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

exp 3

The document outlines Experiment No. 3, which involves developing assembly language programs for the Vinytics Student-85 microcomputer kit using the ALP 8085. It includes specific subprograms for initializing registers, performing arithmetic operations, and generating Fibonacci series, along with a theoretical background, precautions, and detailed coding procedures. The experiment aims to enhance understanding of microcomputer operations and programming techniques related to the Intel 8085 microprocessor.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Name: Shobhit Raghuwanshi

Scholar No.: 2311401242

EXPERIMENT No. 3
1. Title –
Developing programs in ALP 8085 for Vinytics Student-85 microcomputer
kit to understand the operation of microcomputer. Following is a list of
subprograms –

1. [Concept illustration program] - Write a program in ALP 8085 (for Vinytics


Student-85 microcomputer kit) to initialize the register B with 05H, then move
the data to registerC register. Finally observe the result after executing the
program. The program should be written from memory location 2000H.
2. [Concept illustration program] - Write a program in ALP 8085 (for Vinytics
Student-85 microcomputer kit) to load two bytes of data from address
locations 3000H and 3001H, add those bytes and store the result back to
3002H. Finally observe the result after executing the program. The program
should be written from memory location 2000H.
3. [Concept application program] – Write a program in ALP 8085 (for Vinytics
Student-85 microcomputer kit) to multiply 2 one nibble numbers and store the
result in some register. The program should be written from memory location
2000H.
4. [Concept application program] – Write a program in ALP 8085 (for Vinytics
Student-85 microcomputer kit) to create and store first 10 Fibonacci series
numbers starting from memory location 3000H. The program should be written
from memory location 2000H.

2. Theoretical Background –
The Vinytics Student-85 microcomputer kit is an educational tool
designed to help students understand the architecture and programming of the
Intel 8085 microprocessor. While specific documentation for the Student-85 kit
is limited, we can explore the general theory and components of 8085
microprocessor kits to provide a foundational understanding. We need to study
the command given by the company to operate it properly.
3. Experimental Setup –
The current experiment is performed on the Vinytics Student-85 microcomputer
kit.

4. Precautions-
Following precautions are to be taken while using GNU 8085 software-
1. Be mindful of where you store your input values and the result. Ensure that
you don't overwrite values unintentionally.
2. The A register is typically used for performing operations and holding
results. It’s critical in many instructions like ADD, MOV, and MVI.
3. Don’t use comma while writing MOV operation.
4. Be aware of the Flags (Zero, Carry, Sign, Parity, and Auxiliary Carry) after
each operation. For example, after a ADD or MOV instruction, check the
flags as they may affect the flow of the program, especially when branching
or making decisions based on zero or carry flags.
5. Each instruction in the 8085 takes a specific number of T-states to execute.
For example, MOV instructions take fewer cycles than MUL or ADD
instructions. Make sure to consider this in case you're measuring time or
designing a time-sensitive application.
6. Stop the program by writing RST 5.

5. Procedure
1. To use the microcomputer first connect it with the power supply and with
the external keyboard.
2. To access the memory in the microcomputer first type m with the
keyboard and then type the memory address where you want to see the
data or change the data in it.
3. To write the ALP code in the microcomputer first type 1 in the keyboard
and then give the memory address from which you want to start writing
your program.
4. Now to run the program type G on the keyboard and then write the
address of the ALP code which you wants to write and then press (shift +
$ ) in the keyboard and your program will run.
5. Now if you want to see the data or change the data in the registers type R
and then type the register where you want to change or see the data.

The interface of Vinytics Student-85 microcomputer kit is explained below -


Region 1 – Microprocessor 8085 - This trainer kit is widely used in engineering
colleges and technical institutes to teach 8085 microprocessor architecture,
instruction set, and interfacing techniques. It provides a real-time learning
experience by allowing users to write and execute assembly language
programs, control peripherals, and explore microprocessor operations
Region 2 - LED – LEDs are used to display data or status information in a
visually understandable way. LEDs are controlled by the microprocessor’s I/O
ports. The user can program the microprocessor to send binary values to the
LEDs, turning them on or off. This makes it easier for beginners to understand
concepts.
Region 3 - Port – Region 3 is used to connect the external keyboard our kit.

5. Code (with proper comments)

Code for concept illustration program 1


Write a program in ALP 8085 (for Vinytics Student-85 microcomputer kit) to
initialize the register B with 05H, then move the data to registerC register. Finally
observe the result after executing the program. The program should be written
from memory location 2000H.

Memory Code Explanation

2000H MVI B 05H Move the value 05H in register B


2002H MOV C,B Copy the data of B to C
2003H RST 5 Stop the execution

Code for concept illustration program 2


Write a program in ALP 8085 (for Vinytics Student-85 microcomputer kit) to load
two bytes of data from address locations 3000H and 3001H, add those bytes and
store the result back to 3002H. Finally observe the result after executing the
program. The program should be written from memory location 2000H.

Memory Code Explanation

2000H LDA 3000H Store the value of memory at 3000H at


A
2003H MOV B,A Copy the data of A to B
2004H LDA 3001H Store the value of memory at 3001H at
A
2007H ADD B Add data at A and B and store result at
A
2008H STA 3002H Put the value of A at given memory
200BH RST 5 Stop the execution

Code for concept illustration program 3


Write a program in ALP 8085 (for Vinytics Student-85 microcomputer kit) to
multiply 2 one nibble numbers and store the result in some register. The program
should be written from memory location 2000H.

MemoryCode Explanation

2000HMVI B 03H Move the value 03H to B


2002HMVI C 02H Move the value 02H to C
2004HMVI A 00H Move the value 00H to A
2006HADD B Add data of A and B and store result at A
2007HDCR C Decrement the value of C
2008HJNZ 2006H If the value of C is not zero go to memory
location 2006H
200BHMOV D,A Move the data of A to D
200CHRST 5 Stop the execution

Code for concept illustration program 4


Write a program in ALP 8085 (for Vinytics Student-85 microcomputer kit) to
create and store first 10 Fibonacci series numbers starting from memory location
3000H. The program should be written from memory location 2000H.

Memory Code Explanation

2000H MVI A 00H Move the value 00H to A


2002H STA 5000H Put the value of A at given memory
2005H MVI A 01H Move the value 01H to A
2007H STA 5001H Put the value of A at given memory
200AH MVI A 00H Move the value 00H to A
200CH MVI B 00H Move the value 00H to B
200EH MVI C 01H Move the value 01H to C
2010H MVI D,12H Move the value 12H to D
2012H MVI H 50H Move the value 50H to H
2014H MVI L 02H Move the value 02H to L
2015H ADD B Add data of A and B and store result at A
2016H ADD C Add data of A and C and store result at A
2017H MOV M,A Move the data from A to Memory
2019H MOV B,C Move the data from C to B
201BH MOV C,A Move the data from A to C
201CH INX H Increment the value of HL register pair
201DH DCR D Decrement the value of DE register pair
201EH MVI A,00H Move the value 00H to A
2101H JNZ 2015H If not zero jump to
2102H RST 5 Stop the execution

6. Observations –
We can observe that we have to use RST 5 to Hault the program instead of HLT
as it is given in the command book provided by the company.
7. Conclusion –
We have successfully implemented the code and have cross verified its result.

You might also like