Archived

This topic is now archived and is closed to further replies.

Coriolan

Minimal instruction set

Recommended Posts

Coriolan    228
Consider a CPU whose instruction set consists of only one instruction: instr a, b, x where a, b and x are the addresses of operands. What this instruction does is: *a = *a-*b; if (*a < 0) jump *x; Do you think it is possible to buid a general-purpose CPU with only this instruction?

Share this post


Link to post
Share on other sites
Aerolithe    122
I believe their is a processor out there with only one instruction, I''ll see if I can find some info on it but nothing relative in the first few pages of google yet.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
A classic computer architecture problem.. I had this question for homework in college...

Share this post


Link to post
Share on other sites
cmptrgear    306
Spooky my prof in architecture talked about this just the other day.

"Give a man a fish and he will eat for a day, drown a man in the water and the fish will eat for a week!

Share this post


Link to post
Share on other sites
Zahlman    1682
I know I''ve seen a web page before claiming this is possible (with the same instruction - Subtract and Branch if Negative). However, I also call homework.

Share this post


Link to post
Share on other sites