Machine language vs. assembly language
Realmachine language level programming means to handle the bit ncodings of machine instructions
Example(MIPS CPU: addition$t0←$t0+$t1):
1000010010100000000100000
Assembly languageintroduces symbolic names (mnemonics) for machine instructions and makes programming less error-prone:
Example(MIPS CPU: addition$t0←$t0+$t1):
Realmachine language level programming means to handle the bit ncodings of machine instructions
Example(MIPS CPU: addition$t0←$t0+$t1):
1000010010100000000100000
Assembly languageintroduces symbolic names (mnemonics) for machine instructions and makes programming less error-prone:
Example(MIPS CPU: addition$t0←$t0+$t1):
add $t0, $t0, $t1
Anassemblertranslates mnemonics into machine instructions
–Normally: mnemonic
1:1
←→machine instruction
–Also: the assembler supportspseudo instructionswhich are translated
into series of machine instructions (mnemonic
1:n
←→machine instruction)