lec10 - Computer Programming I TA C162 Todays Menu

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

View Full Document Right Arrow Icon
1 Computer Programming I TA C162 01/02/07 Today’s Menu • Instruction –  Fundamental unit of work!     Instruction processing–  Divides into phases Phases Examples
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Computer Programming I TA C162 01/02/07 Instruction The instruction is the fundamental unit of work. Specifies two things: opcode :  Operation to be performed e.g. ADD, LOAD, STORE operands :  Data/locations to be used for operation e.g ADD  dest    scr1  scr2 An instruction is encoded as a  sequence of bits .    (Just like data!) Often, but not always, instructions have a fixed  length, such as 16 or 32 bits.
Background image of page 2
3 Computer Programming I TA C162 01/02/07 Instruction Cont…   Control unit interprets instruction: Generates sequence of control signals to carry out  operation.  Operation is either executed completely, or not at all. Example:  Fetch an operand from memory A computer’s instructions and their formats is known as  its Instruction Set Architecture  ( ISA ) .
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 Computer Programming I TA C162 01/02/07 Instruction Processing/Instruction Cycle Decode instruction Evaluate address Fetch operands from memory Execute operation Store result Fetch instruction from memory
Background image of page 4
5 Computer Programming I TA C162 01/02/07 Example: LC-3 ADD Instruction LC-3 has 16-bit instructions. Each instruction has a four-bit 
Background image of page 5

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

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

Page1 / 18

lec10 - Computer Programming I TA C162 Todays Menu

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

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