Minimal instruction set

Started by
10 comments, last by Coriolan 20 years, 3 months ago
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?
Advertisement
Well, the CPU needs to fulfill all the basic requirements of a Turing machine.

Is this Turing complete? (thinking...)
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
No.

How would you add, how would you do a compare.

I think brainfuck is the minimal you can go.




~~~~~
"Thank you for those kind words." - Cowsarenotevil
Download and play Slime King I.
~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn
quote:How would you add, how would you do a compare.

Easily. Think about it.
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.
Relay on, relay off

-Nik

Niko Suni

moved from the lounge
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
I''m calling "homework" on this one...
A classic computer architecture problem.. I had this question for homework in college...

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!
"Pfft, Facts! Facts can be used to prove anything!" -- Homer J. Simpson

This topic is closed to new replies.

Advertisement