Hello
I need help to understand how does instruction fetch , decode and execute
code
Processor read Byte from Program memory at the address indicate by program
processor read Byte form program memory at the address 0000 indicate by program counter
Where 0000 is memory address. 74 is opcode
So the processor doesn't read any more bytes from program memory; it start to decode and execute the instruction immediately.
I don't understand how does this instruction decode and execute ?
I need help to understand how does instruction fetch , decode and execute
code
Code:
ORG 000
MOV A,#55H ;load immediate value 55H into reg. A
MOV R0,A ; move the content of A into R0
END
p>
Immediate ------------ Accumulator
Accumulator------------- register
CODE Memory
74 55 F8
MOV A,#55= 01110100 01010101
MOV R0, A = F8= 11111000
Code Memory
[CODE]ADDRESS Value
0000= 0000000000000000 74= 01110100
0001= 0000000000000001 55= 01010101
0002= 0000000000000010 F8= 11111000
Processor read Byte from Program memory at the address indicate by program
processor read Byte form program memory at the address 0000 indicate by program counter
Where 0000 is memory address. 74 is opcode
So the processor doesn't read any more bytes from program memory; it start to decode and execute the instruction immediately.
I don't understand how does this instruction decode and execute ?
Last edited: