

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


ECS 50 Chapter 2 Lecture Notes I. Main Memory Organization and Major Hardware Components A. What is the type of information stored in a memory location?
a) PC = Program counter. Contains address of currently executing instruction. b) On Intel actually CS (code segment) and IP (instruction pointer). (1) 16-bit mode has 20 bit addresses, uses 16 bit CS as MSB and then adds 16 bit IP. (2) 32-bit mode has 32 bit addresses uses 32 bit CS and IP. c) SP = Stack pointer. Contains address of top of stack for temporary storage. d) XR = Index register. Helps access arrays. e) PS = Process status register. Contains flags, including condition codes and big-endian vs little endian flag for PowerPC and MIPS. f) DRs = Data registers. (1) Word size (2) CUSP: Accumulator (3) MIPS has 32 32-bit general purpose registers + PC and two for multiplication (4) SPARC has 8 global and a register window onto a "register file"that sees 24 registers at a time. Implementations allow 2 to 32 windows. Great for procedure calls. Think of as top of stack. g) MAR = Memory address register. CPU connection to address bus. h) MDR = Memory data register. CPU connection to data bus. i) IR = Instruction register. Holds current instruction, so MDR may be overwritten.