Unit Ii: Machine Instructions & Programmes
Unit Ii: Machine Instructions & Programmes
Unit Ii: Machine Instructions & Programmes
Memory consists of a collection of storage locations each with a unique identifier called an
“address”. Data can be transferred to and fro as a group of bits called “word”. A word can be
of 8 bits or 16 bits or 32-bits and so on.
Address Space
Each word is identified by an address. The total number of uniquely identifiable locations in
memory is called “Address Space”.
Byte Addressability
• A computer in which each byte stored can be addressed individually is
called as byte addressability.
Big-Endian Assignment
• Lower byte addresses are used for the most significant bytes of the word.
• Little-Endian Assignment
• Lower byte addresses are used for the less significant bytes of the word.
Word Alignment
• The number of bytes in a word is power of 2.
• word length is 16-bit - byte addresses are 0,2,4,
• 32-bit - byte addresses are 0,4,8,
• 64-hit - byte addresses are 0,8,16,...
Accessing Numbers, Characters and Character Strings
• Numbers It occupies one word and can be accessed in the memory by using its word
address.
Memory Operations
• Both program instructions and data operands are stored in the memory.
1. Data Movement,
2. Data Storage,
3. Data Processing,
R1 [LOC], R3 [R1]+[R2]
1. Three-Address Instruction.
2. Two-Address Instruction.
3. One-Address Instructions.
4. Zero-Address Instructions.