How do i get the fetch cycle working if i have to get the instruction address from memory and assign it to some area of ram? I am just starting to learn the language java any suggestions? I want to get the address from the instruction and add the required ram to it I would like to know if i am on the right track.
How do i get the fetch cycle working if i have to get the instruction address from memory and assign it to some area of ram? I am just starting to learn the language java any suggestions? I want to get the address from the instruction and add the required ram to it I would like to know if i am on the right track.
public int fetch(){
program_counter =0;
memory_address= 00000011100;
instruction_register = 000110001;
System.out.println("Processor is now fetching..");
return 1;
}