CS33-10

CS33-10 - CS 33: Computer Organization Topic 10:Sample...

Info iconThis preview shows pages 1–12. 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

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: CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-1 Sample Computer Architecture CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-2 Sample Computer Memory 256 words 16 bits Registers Instruction Pointer 2 Accumulators 1 Index register Condition Code CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-3 Sample Computer (Cont.) Instructions 0: STOP Halt 1: CLEARA Clear accumulator 2: LOADA Load accumulator 3 : STOREAStore accumulator CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-4 Sample Computer (Cont.) Instructions (Continued) 4: ADDA Add to accumulator 5: SUBA Subtract from accumulator 6: MULA Multiply accumulator 7: DIVA Divide accumulator CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-5 Sample Computer (Cont.) Instructions (Continued) 8: LOADX Load index register 9: STOREXStore index register A: ADDX Add to index register B: SUBX Subtract from index register CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-6 Sample Computer (Cont.) Instructions (Continued) C: BR Branch D: BRZ Branch if zero E: BRP Branch if positive (> 0) F: BRN Branch if negative (< 0) CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-7 Sample Computer (Cont.) Condition Code Holds result of last operation Zero Positive Negative Overflow CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-8 Sample Computer Memory B 1 3 2 5 4 6 8 7 A 9 C E D F 0 1 2 3 4 5 6 7 8 9 A B C D E F CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-9 Central Processing Unit (CPU) Control Unit (CU) Arithmetic- Logic Unit (ALU) Instruction Register (IR) Accumulator 1 Program Counter Accumulator 2 Index Register Condition Code CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-10 Sample Computer Instructions OPCODE AC XR MODE ADDRESS AC: Accumulator Selector 0: AC 1 (1) 1: AC 2 (2) XR: Indexed Addressing Indicator 0: No Indexing 1: Indexed (+) MODE: Addressing Mode 00: Immediate (I) 01: Direct (D) 10: Indirect (N) 11: Relative (R) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 CS 33: Computer Organization Topic 10:Sample Computer Architecture 9/2008 John A. Rohr All Rights Reserved JAR 10-11 Sample Instruction Syntax OPCODE[+] [R],Address,M +: Present if indexed R: Register (If Applicable) 1: AC 1 2: AC 2 M: Mode: I: Immediate D: Direct N: Indirect R: Relative CS 33:...
View Full Document

Page1 / 42

CS33-10 - CS 33: Computer Organization Topic 10:Sample...

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

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