CS 120 Lecture Notes - Lecture 14: Instruction Set, Assembly Language, Opcode

63 views2 pages

Document Summary

Isa instruction set architecture: sparc, arm x86. We"ll (cid:271)e usi(cid:374)g a(cid:374) ar(cid:272)hite(cid:272)ture (cid:272)alled mips, (cid:449)hi(cid:272)h (cid:449)as used for the origi(cid:374)al ni(cid:374)te(cid:374)do. Nowadays, x86 is the most widely used isa. Principles used when designing mips: simplicity favors regularity, fundamental, nothing extraneous, concise, elegant, make the common case fast, smaller is faster, less instructions means that the circuit can be smaller, which is faster, good design demands compromise. Opcode: instruction code: all isas follow this base code. Source: data input/ operands: there can be any number of sources. Options: define the specific mathematical or logical instruction. To write an instruction in assembly code, such as a = b + c, it would be written like: add , , . You (cid:272)a(cid:374)"t do (cid:373)ultiple operatio(cid:374)s, su(cid:272)h as a = (cid:271) + (cid:272) + a, so you ha(cid:448)e to (cid:449)rite se(cid:448)eral i(cid:374)stru(cid:272)tio(cid:374)s i(cid:374) assembly code: add , , add , , .

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents