Professional Documents
Culture Documents
Introduction
Archana Nair S
Department of CSE
Amrita Viswa Vidyapeetham
Objectives
• Computer Architecture.
• CPU basics.
Place your
• Stored Program Concepts. Webcam Video here
Size 100%
1
Computer Architecture Place your
Webcam Video here
Size 38%
2
CPU Basics Place your
Webcam Video here
Size 38%
Three parts
• ALU
• Control Unit
• Registers
• Special Purpose Register
• General Purpose Register
3
Registers Place your
Webcam Video here
Size 38%
4
Place your
Bus Structure
Webcam Video here
Size 38%
5
CPU Basics Place your
Webcam Video here
Size 38%
6
Place your
7
Steps for Multiplying two Place your
Number
Webcam Video here
Size 38%
1. Get the first value from the memory and store it in one of the registers.
2. Get the second value from the memory and store it in another register.
3. Activate the ALU to perform multiplication with the two registers as input
and store the result in another register.
4. Store the result in memory.
5. Stop.
8
Place your
Machine Language
Webcam Video here
Size 38%
9
Place your
10
Instruction Format Place your
Webcam Video here
Size 38%
11
Instruction Formats Place your
Webcam Video here
Size 38%
12
Instruction Types Place your
Webcam Video here
Size 38%
13
Instruction Types Place your
Webcam Video here
Size 38%
14
Instruction Types Place your
Webcam Video here
Size 38%
15
Instruction Types Example Place your
Webcam Video here
DIV A,B,C Size 38%
16
Encoding of Instructions Place your
Webcam Video here
Size 38%
Machine Architecture
Image courtesy: J. Glenn Brookshear,”Computer Science: An
Overview”, Addision-Wesley, Twelfth Edition
17
Instruction Encoding Place your
Webcam Video here
Size 38%
18
Instruction Decoding Place your
Webcam Video here
Size 38%
19
Program Execution Place your
Webcam Video here
Size 38%
20
Machine Cycle Place your
Webcam Video here
Size 38%
21
Machine Cycle Place your
Webcam Video here
Size 38%
22
Example Program Place your
Webcam Video here
Size 38%
23
Instruction Fetch Place your
Webcam Video here
Size 38%
24
Instruction Fetch Place your
Webcam Video here
Size 38%
25
Instruction Fetch Place your
Webcam Video here
Size 38%
26
Instruction Decode Place your
Webcam Video here
Size 38%
27
Instruction Decoding and Place your
Execution
Webcam Video here
Size 38%
28
Objectives
Place your
Webcam Video here
Size 100%
29
The 8085 MPU Internal
Structure
30
The 8085 MPU Internal Structure
31
The 8085 MPU Internal
Structure
32
The 8085 MPU Internal
Structure
following operations:
33
The 8085 Bus Structure
34
The 8085 Bus Structure
Address Bus
▪ Consists of 16 address lines: A0 – A15
35
The 8085 Bus Structure
Data Bus
• Consists of 8 data lines: D0 – D7
• Operates in bidirectional mode.
• Data range: 00 (hex) – FF (hex)
Control Bus
• Consists of various lines carrying the control signals such as
read / write enable, flag bits.
36
Registers
Registers
• Six general purpose 8-bit registers: B, C, D, E, H, L
• They can also be combined as register pairs to perform 16-bit
operations: BC, DE, HL
• Registers are programmable (data load, move, etc.)
Accumulator
• Single 8-bit register that is part of the ALU !
• Used for arithmetic / logic operations – the result is always stored
in the accumulator.
37
Registers
Flag Bits
• Indicate the result of condition tests.
• Carry, Zero, Sign, Parity, etc.
• Conditional operations (IF / THEN) are executed based on the condition of
these flag bits.
38
Takeaways
• 8085 Microprocessor
architecture.
Place your
Webcam Video here
Size 100%
39
Takeaways
• Computer Architecture.
• CPU Basics
• Machine language.
Place your
• CPU architectures. Webcam Video here
Size 100%
40
Introduction to GNUSim8085
• Ease the users to code, assemble and execute 8085 assembly programs
without using actual hardware.
41
Features of GNUSim8085
• The simulation has input and output mechanism identical to the actual hardware.
• User can also view input/output (I/O) ports, memory and stack contents.
• The software can display the status of processor’s registers and flags.
Advantage:
• Introduction of an assembler and an editor for the 8085 processor.
42
Using the Software
43
Using the Software
• The software launches a workspace with sample codes that can be worked on.
• A toolbar on the top contains various options including File, Reset, Assembler,
Debug and Help.
• The left panel contains a compact overview of the Intel processor’s registers
and flags.
44
Using the Software
• One is for the I/O port value and the other for the memory register.
• Entering the port number in the numeric box displays the port content in the
adjacent text box.
45
Using the Software
• The right panel comes with multiple tabs that list values of the processor’s different
entities.
• The first tab is ‘Data,’ which enlists the defined data variables.
• The following tab is ‘Stack,’ which displays addresses and values of stack region of the
program.
• Two other tabs include I/O port and memory port, which enlist the values of I/O ports
and memory.
46
Using the Software
• An additional tab opens a virtual keypad, which allows users to digitally insert
values.
• At the lower end of the right panel, a message box that displays the status of
program compilation and execution.
• If any error, the message box displays an error message mentioning the location
and reason of error.
47
Using the Software
• The first is “Assemble”, which loads the program code to the memory address.
• The second is “Execute”, which compiles and runs the loaded program.
• The third option is “Show Listing”, where users can view the executed program
code.
48
Using the Software
49
Using the Software
• One is “Debug” which consists of sub-menus “Step In”, “Step Over” and “Step
Out”.
• This makes code debugging easy by analyzing the register and memory content
in each step.
50
Using the Software
• Reset menu will reset the values of registers, ports, flags and memory.
51
Sample 8085 Programs
Program: Explanation:
Following program adds two 8bit • MVI A, 05 - will load the value 05
values stored in registers A and B to Accumulator.
and save the result in A. • MVI B, 02 - will load the value 02
to register B.
MVI A, 05
• ADD B - will add the content of
MVI B, 02 register B with A and save the
ADD B result in A by default.
HLT • HLT - will indicate the end of
the program
52