The Simulator project.

Slides:



Advertisements
Similar presentations
Slides revised 3/25/2014 by Patrick Kelley. 2 Procedures Unlike other branching structures (loops, etc.) a Procedure has to return to where it was called.
Advertisements

Computer Science 210 Computer Organization Recursive Subroutines System Stack Management.
There are two types of addressing schemes:
The Little man computer
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Basic Input/Output Operations
ECE 265 – LECTURE 17 Simulator Project 8/7/ ECE265.
Rabel Talpur:12BME#025.  40-pin chip  Developed by Motorola in 1975  16 address lines and 8 data lines  Used only +5V.
9/20/6Lecture 21 -PIC Architecture1 PIC Architecture Programmers Model and Instruction Set.
SAP1 (Simple-As-Possible) Computer
Stacks and Subroutines ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
MIPS R3000 Subroutine Calls and Stack Department of Computer Science Southern Illinois University Edwardsville Fall, 2015 Dr. Hiroshi Fujinoki
13/02/2009CA&O Lecture 04 by Engr. Umbreen Sabir Computer Architecture & Organization Instructions: Language of Computer Engr. Umbreen Sabir Computer Engineering.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
9/20/6Lecture 3 - Instruction Set - Al Instruction Set (2)
The Stack This is a special data structure: –The first item to be placed into the stack will be the last item taken out. Two basic operations: –Push: Places.
OCC - CS/CIS CS116-Ch00-Orientation Morgan Kaufmann Publishers ( Augmented & Modified by M.Malaty) 1CS 116 Fall 2003 Not quite finished Creating.
CascadedBCDCntr&Display Aim : Capture, simulate and implement a 2-digit, loadable BCD up/down counter, with chip enable I/P (CE) and chip enable O/P (CEO).
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Computer Architecture CSE 3322 Lecture 4 crystal.uta.edu/~jpatters/cse3322 Assignments due 9/15: 3.7, 3.9, 3.11.
by Richard P. Paul, 2nd edition, 2000.
ECE 265 – LECTURE 5 The M68HC11 Basic Instruction Set 12/8/ ECE265.
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Assembly Language Programming of 8085 BY Prof. U. V. THETE Dept. of Computer Science YMA.
Subroutines and Stacks. Stack The stack is a special area in memory used by the CPU to store register information or general data information during program.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Digital Electronics LAB #1 Must be completed by Oct 30 Bonus if done by Oct 29 INSTRUCTIONS 1.When you have a working system make an appointment for me.
The Little man computer
Unit 1 Instruction set M.Brindha AP/EIE
SAP1 (Simple-As-Possible) Computer
ECE 3430 – Intro to Microcomputer Systems
Figure 8.1 of course package
Assembly Language Programming of 8085
3.Instruction Set of 8085 Consists of 74 operation codes, e.g. MOV
Computer Architecture
BYTE AND STRING MANIPULATON
6.001 SICP Stacks and recursion
Subroutines … a 1st look procedures and functions in high level languages are modeled on subroutines typically, assembly code is very modular with.
Branching and Looping Lecture L3.2.
Application Binary Interface (ABI)
Final Exam Review Department of Electrical and Computer Engineering
Addressing in Jumps jump j Label go to Label op address 2 address
Instruction and Control II
Passing Parameters Data passed to a subroutine is called a parameter.
Chapter 8 Central Processing Unit
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Table Construction.
Chapter 9 TRAP Routines and Subroutines
Homework Reading Tokheim, Section 5-10, 7-4.
L13b – 32 bit multiply Department of Electrical and
by Richard P. Paul, 2nd edition, 2000.
The MOVE Multiple: MOVEM Instruction
ECE 3430 – Intro to Microcomputer Systems
6.001 SICP Explicit-control evaluator
Subroutines … passing data
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Data Hazard Example (no stalls).
EET 2261 Unit 6 The Stack; Subroutines
Chapter 6 Programming the basic computer
CPU Structure and Function
Lecture 3 - Instruction Set - Al
Chapter 7 Microprogrammed Control
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Counter Fundamentals Presented by :
ECE511: Digital System & Microprocessor
MIPS R3000 Subroutine Calls and Stack
Lecture 3 - Instruction Set - Al
Presentation transcript:

The Simulator project

Assignment 1 Create a subroutine for delay between the individual diplays in the assignment. Use a BSR instruction for this. First, attach a 7-segment display to Port B Then write code to light up each of the individual segments of the display with a delay between each. Then write code to activate the segments such that the display shows 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 in order with a delay between the display of each digit.

Detail on the use of BSR BSR stands for Branch to Subroutine All that is stacked on a BSR is the Program Counter. If you want to save any other register, you need to do it. Convention is to stack (and then restore before return) any registers that your routine uses. The return to the calling program is achieved by a RTS instruction.

Assignment 2 Add a 2nd display on Port C and be able to output the most-significant-nibble of what is in accumulator A to this. For this you will have a couple levels of subroutines.

The subroutines The program flow using subroutines.

Assignment 2 Add the second 7-Segment Display for the MSB. The intent is to display the contents in the A accumulator (BCD) on the display. In assignment 2 you set up the subroutines to display the digits on the respective display.

Assignment 2 structure The subroutine calling structure of 2