4-bit stack based IS - Printable Version +- Forums - Open Redstone Engineers (https://forum.openredstone.org) +-- Forum: ORE General (https://forum.openredstone.org/forum-39.html) +--- Forum: Projects & Inventions (https://forum.openredstone.org/forum-19.html) +---- Forum: Completed Projects (https://forum.openredstone.org/forum-21.html) +---- Thread: 4-bit stack based IS (/thread-2436.html) |
4-bit stack based IS - MelvinS4_ - 02-15-2014 I recently found the wonderful world of stack based processor architectures. I've made a simple IS that I hope to implement in a minecraft CPU, but before that I was hoping to get some feedback from folks who are more knowledgeable than me Without further endue, here is the IS: Code: 0 0000 PUSH:STACK pushes first element (0 if stack is empty) The things which are yet to be decided upon are: 1. if a is the GPR and b is the top of stack OR a is the top of stack and b is the second item in stack, 2. if ALU calls will simply push the result OR pop it's operands first 3. if JMP calls will jump to the value in the GPR OR in the top of the stack. (Please note the difference in capitalization of a and A, A and B are the top and second items in the stack, while a and b have not yet been decided.) Any feedback and suggestions are welcome! |