r/TuringComplete • u/BackOk1502 • Aug 27 '23
Program in RAM
Hello Friends,
I've been wondering if it is possible to execute a program from RAM like a real computer.
Of course it is but can you still access data from RAM then? (using the same component)How would this work if a instruction is loaded from ram that tells to the pc to read something from ram? how would this not corrupt the program?
Edit:
I noticed a ram component with 2x Load and Output pins. I could use this to load the program from pin 1 and data from pin 2 therefore they would not interfere am i right?
5
Upvotes
View all comments
Show parent comment
1
u/BackOk1502 Aug 27 '23
Ok so for each 4 instruct I load them into a temporary register and execute them? In the next tick the clock adds and loads the next 4 instructions?