CS 120 Lecture Notes - Lecture 14: Instruction Set, Assembly Language, Opcode
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 , , .