CSS 372 Oct 2nd Lecture 1 - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

CSS 372 Oct 2nd Lecture 1

Description:

... address space for I/O programming, and an entirely separate set of ... Address of Trap Service Routine loaded into PC. Service Routine Program executed ... – PowerPoint PPT presentation

Number of Views:35
Avg rating:3.0/5.0
Slides: 6
Provided by: lcr5
Category:
Tags: 2nd | css | lecture | oct | register

less

Transcript and Presenter's Notes

Title: CSS 372 Oct 2nd Lecture 1


1
CSS 372 Oct 2nd - Lecture 1
Course Overview CSS 372 Web page
Syllabus Lab Ettiquette Lab Report
Format Review of CSS 371 Simple Computer
Architecture
2
Simple ComputerData Paths
3
Simple Input / Output
Memory Mapped I/O A section of the memory
address space is reserved for I/O Registers
rather than general memory locations. Think of
it as pseudo memory. The same instructions are
used for general programming and I/O
programming. Non-Memory Mapped I/O There is a
separate address space for I/O programming, and
an entirely separate set of I/O Instructions.
4
Simple Memory Mapped I/O
Simple Memory Layout x0000 x00FF Trap
vectors (Supports Software Interrupts)
x0020 x0400 GETC (Read Char from
Keyboard) x0021 x0430 OUT
(Write Character to Console) x0022
x0450 PUTS (Write string to Console)
x0023 x04A0 IN (Prompt,
input character from Keyboard, echo character to
Console) x0024 x04E0 PUTSP
(Write packed string to Console)
x0025 xFD70 HALT (Turn off run latch in
MCR) x0100 x01FF Interrupt Vectors
(Supports Hardware Interrupts) x0200 x2FFF
System Programs Data (Operating System)
x3000 xFDFF User Programs Area xFE00
xFFFF I/O Programming Registers (Mapped I/O
Registers) xFE00 KBSR 15 Ready, 14
Intr enable (Keyboard Status Register)
xFE02 KBDR 70ascii data
(Keyboard Data Register) xFE04
DSR 15Done, 14Intr enable
(Display Status Register) xFE06 DDR
70ascii data
(Display Data Register xFFFE MCR
15Run latch
(Machine Control Register)
5
Simple Traps
  • Execute TRAP vector - Operating System
    Service Routines
  • 2) Trap Vectors are at memory locations
    000000FF
  • Trap Vectors contain addresses of Trap Service
    Routines
  • (PC) is loaded into R7
  • Address of Trap Service Routine loaded into PC
  • Service Routine Program executed
  • Trap service routine program ends with an RET
  • ( (R7) loaded into PC)
Write a Comment
User Comments (0)
About PowerShow.com