Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smaller architecture #9

Open
mcandre opened this issue Jul 19, 2021 · 1 comment
Open

Smaller architecture #9

mcandre opened this issue Jul 19, 2021 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Jul 19, 2021

Why not start the instructions for the CPU with NAND? That way, you do not have to implement so much, without sacrificing Turning completeness. Any other commands are simply conveniences to be added later.

@RobertElder
Copy link
Contributor

Yes, I had thought about making it even smaller, but at a certain point the instruction becomes so small that it starts to become obfuscated. The idea was to make a small/simple/understandable architecture. Having said that, I do think there are still changes that should be made to the instruction set. It has been a few years since I've worked on this project regularly, but I recall that it seemed like a good idea next to add a 'return' or 'branch to function' instruction of some sort to make it easier and less instructions to return from a function call. Similar to how ARM does it with bl instruction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants