CS530.Chap1 - Systems Programming SDSU, CS530 Chapter 1 Guy...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Systems Programming SDSU, CS530 Chapter 1 Guy E Leonard Overview Machine Architecture System Software The Simplified Instructional Computer (SIC) Programming the SIC, SIC/XE Computer Printer Keyboard Machine Architecture CPU I/O Memory Instruction Instruction Instruction Data Data Data Data . . . . . . . Bus (interconnection) C - Program Counter: Contains the address of the next instruction to be fetched W - Status Word: User/Supervisor bit Process ID Condition codes Interrupt codes/mask Accumulator/Arithmetic: Number (Float/Integer) to be operated on Results of arithmetic operations ser User Registers: General purpose register for programmers use SW PC A Monitor User Machine Architecture: CPU Control Unit interrupt/jump/fetch/store/privileges/reset/etc Arithmetic Unit add/subtract/multiply/divide/logic-ops Registers Fastest memory in the machine, one word wide All data to be manipulated, must be in a register Cache movement of blocks of data/instructions temporary work storage Machine Architecture: Processor Registers User-visible registers In machine language format Available to all programs - application programs and system programs Three types of registers: Status Word (Condition Code) Address Program Counter, Index Data Accumulator, User Machine Architecture: Status Word Register Bits set by the processor hardware as a result of operations Can be accessed by a program, cannot be changed by program Examples Condition codes: positive result, negative result, zero, overflow Flags: Mode (supervisor/user), interrupt code, interrupt mask, etc Machine Architecture: Address Registers Program counter (PC) holds address of the instruction to be fetched next PC may be used with index registers, base registers to form address START START HALT HALT Fetch Next Instruction Fetch Next Instruction Execute Instruction Execute Instruction Fetch Cycle Execute Cycle Processor fetches the instruction from memory Program counter is incremented after each fetch Introducing the SIC -- Simplified Instructional Computer SIC Simplified Instructional Computer Hypothetical computer that includes the hardware features & concepts common to most computers without the complexity of the real thing Two versions of SIC: SIC -- standard model SIC/XE -- extra equipment model In following slides I will use black for SIC + SIC/XE (Common) I will use xxx for SIC (basic) only I will use red for SIC/XE unique SIC/XE Machine Architecture (1/9) Memory 2 15 bytes in the computer memory 32Kb 2 20 bytes in the computer memory 1Mb 8-bit bytes 1 word = 3 consecutive bytes SIC/XE Machine Architecture (2/9) Registers MNEMONIC Register # Comment/note A Accumulator X 1 Index register L 2 Linkage register (JSUB/RSUB) B (SIC/XE) 3 Base register S (SIC/XE) 4 General register...
View Full Document

Page1 / 30

CS530.Chap1 - Systems Programming SDSU, CS530 Chapter 1 Guy...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online