05.08.2014 Views

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Per<strong>for</strong>mance Improvement at Instruction set level<br />

language of the machine<br />

operations arithmetic +, -, *, /<br />

logic<br />

and, or<br />

store, load sw, lw<br />

jump<br />

j<br />

conditional beq, bne<br />

operands<br />

Zero, one, two, three …<br />

Page | 33<br />

Different instruction sets to represent instructions in different architectures<br />

Conditional instructions different<br />

Instructions to support procedures different<br />

Operand order different<br />

Number of operands different<br />

Instruction<br />

Word of a machine<br />

Instruction set<br />

Vocabulary of the machine<br />

Representation of Instructions<br />

Important factor in enhancing per<strong>for</strong>mance<br />

Instructions consists of operations and operands<br />

Different ways of representing instructions - Addressing modes<br />

- Immediate mode<br />

- Direct mode<br />

- Indirect mode<br />

- Register direct<br />

- Register indirect<br />

- Displacement<br />

- <strong>St</strong>ack<br />

1. Immediate mode<br />

operand is available immediately<br />

+ no memory reference (+ means advantages )<br />

- limited magnitude (- means disadvantages)<br />

operation<br />

operand

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!