Beruflich Dokumente
Kultur Dokumente
1.
2.
3.
4.
5.
6.
Introduction
Programming model of 8085
Instruction set of 8085
Example Programs
Addressing modes of 8085
Instruction & Data Formats of 8085
1. Introduction
A microprocessor executes instructions given by
the user
Instructions should be in a language known to
the microprocessor
Microprocessor understands the language of 0s
and 1s only
This language is called Machine Language
For e.g.
01001111
Is a valid machine language instruction of
8085
It copies the contents of one of the internal
registers of 8085 to another
;A = A + B
Assembly
Language
Program
Assembler
Program
Machine
Language
Code
Low-level/High-level languages
Machine language and Assembly language are
both
Microprocessor specific (Machine dependent)
so they are called
Low-level languages
Machine independent languages are called
High-level languages
For e.g. BASIC, PASCAL,C++,C,JAVA, etc.
A software called Compiler is required to
convert a high-level language program to
machine code
MICROPROCESSOR
Microprocessor is a
multipurpose,programmable,clock
driven,register based electronic device
that reads binary instructions from storage
device called memory,accepts binary data
as i/p and process data accordingly
Accumulator
Register Array
ALU
Flags
Memory Pointer
Registers
8-bit Data
Bus
Instruction
Decoder
Control Bus
Accumulator (8-bit)
B (8-bit)
C (8-bit)
D (8-bit)
E (8-bit)
H (8-bit)
L (8-bit)
AC
CY
16- Lines
Bidirectional
Unidirectional
AC
CY
There is also the flags register whose bits are affected by the arithmetic & logic
operations.
S-sign flag
The sign flag is set if bit D7 of the accumulator is set after an arithmetic or
logic operation.
0- + Ve
1- -Ve
Z-zero flag
Set if the result of the ALU operation is 0. Otherwise is reset. This flag is
affected by operations on the accumulator as well as other registers. (DCR
B).
AC-Auxiliary Carry
This flag is set when a carry is generated from bit D3 and passed to D4 .
This flag is used only internally for BCD operations.
P-Parity flag
After an ALU operation if the result has an even no of 1s the p-flag is set.
Otherwise it is cleared. So, the flag can be used to indicate even parity.
CY-carry flag
CY = carry is set when result generates a carry. Also a borrow flag.
3. Flag Register
This is also a part of ALU
8085 has five flags named
Zero flag (Z)
Carry flag (CY)
Sign flag (S)
Parity flag (P)
Auxiliary Carry flag (AC)
What is Address Bus, Data Bus and Control Bus in Microprocessor | What
are the differences between them:
Microprocessor is processing device of every computing device. It is like an artificial
brain. It needs to communicate with outer world. for example, It needs to
communicate with Input devices to get data,it needs to communicate with memory
to process data according to instructions written in memory and finally it needs to
communicate with output devices to display the output on O/P devices. To
communicate with external world, Microprocessor make use of buses. There are
different types of buses used in Microprocessor:
Address Bus: It is a group of wires or lines that are used to transfer the addresses
of Memory or I/O devices. It is unidirectional.In Intel 8085 microprocessor, Address
bus was of 16 bits. This means that Microprocessor 8085 can transfer maximum 16
bit address which means it can address 65,536 different memory locations. This
bus is multiplexed with 8 bit data bus. So the most significant bits (MSB) of address
goes through Address bus (A7-A0) and LSB goes through multiplexed data bus
(AD0-AD7).
Data Bus:As name tells that it is used to transfer data within Microprocessor and
Memory/Input or Output devices. It is bidirectional as Microprocessor requires to
send or receive data. The data bus also works as address bus when multiplexed with
lower order address bus. Data bus is 8 Bits long. The word length of a processor
depends on data bus, thats why Intel 8085 is called 8 bit Microprocessor because it
have an 8 bit data bus.
Control Bus: Microprocessor uses control bus to process data, that is what to do
with the selected memory location. Some control signals are Read, Write and
Opcode fetch etc. Various operations are performed by microprocessor with the help
of control bus. This is a dedicated bus, because all timing signals are generated
according to control signal.
8085 MicroprocessorArchitecture
IO/M
S1
S0
Control
signal(all
signals
active low)
Opcode fetch
RD=0
Memory read
RD=0
Memory Write
WR=0
I/O Read
RD=0
I/O Write
WR=0
Interrupt
acknowledge
INTA=0
Halt
Hold
Reset
RD=WR=Z
INTA=1