Professional Documents
Culture Documents
HAWASSA
UNIVERSITY
DAYEE CAMPUS
MICROPROCCESSOR AND
ASSEMBLY LANGUAGE
STUDENT
SAMUEL ABIYE ID/NO 2142/13
CS
auxiliary memory.
Cache Memory
pg. 1
CS
Registers
Memory
pg. 2
CS
To summarize, registers are fast and temporary storage areas inside the
processor, while memory is slower and external storage where data and
instructions can be stored for longer term to be accessed as required
pg. 3
CS
2. Indexed Addressing:
.In this addressing mode, a register value is added to the address
specified by the instruction to get the final memory address. This
type of addressing can be useful for accessing fields in arrays or
tables.
3. Displacement Addressing:
.Displacement addressing involves adding a fixed value or
displacement to the value stored in a register to obtain the memory
address of the operand.
pg. 4
CS
- Accumulator (A)
- Temp Register (Temp)
- Stack Pointer (SP)
- Program Counter (PC)
pg. 5
CS
pg. 6
CS
pg. 7
CS
pg. 8
CS
CC (3 bits): zpn
Implementation:
The add instruction adds the value of two source registers and stores the
result in a destination register.
Implementation:
pg. 9
CS
- Load the contents of Source Register 1 and Source Register 2 into two
temporary registers, TR1 and TR2, respectively.
- Add the contents of TR1 and TR2 and store the result in the destination
register.
The Load Word Instruction loads a 16-bit word from memory into a
register.
Implementation:
pg. 10
CS
- Load the 16-bit word at the calculated memory address into the
destination register.
The Store Word Instruction stores a 16-bit word from a register into
memory.
Implementation:
- Store the contents of Source Register into the word at the calculated
memory address.
pg. 11
CS
REFERANCES
Google.com
ChatGPT
techtarget.com
elprocus.com
chegg.com
pg. 12