Stack Based CPU - 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: In Progress (https://forum.openredstone.org/forum-20.html) +---- Thread: Stack Based CPU (/thread-9531.html) |
Stack Based CPU - Chibill - 03-09-2016 I am going to be building a CPU based abpeound this emulator. https://github.com/fotcorn/CPU Which is a stack based CPU written in Python. RE: Stack Based CPU - Chibill - 03-09-2016 My own version of his instruction set. http://m.imgur.com/GajGpjQ With two versions. On that should run a bit faster but is simpler. And a more complicated full version. RE: Stack Based CPU - Chibill - 03-10-2016 The IS is slowly changing. And so is the CPU. It now will have a 64 deep stack and also 8 registers for some stuff. And it also has a port to get stuff into and out of the system. RE: Stack Based CPU - Koyarno - 03-10-2016 Hi Chi, some suggestions, 1. Do you have subtract both ways (A-B and B-A) or atleast a swap function to swap top 2 elements of the stack? 2. A bit to signify a pop/ no pop (sometimes you want to hold the second of stack for example processing on data streams) default is to always pop. 3. 64 deep stack seems a lot for mc considering chunk updates. you can also use a pointer or a combination of both. (8 registers in stack setup) Wrubbel also did make a nice IS on a stack machine. RE: Stack Based CPU - Chibill - 03-10-2016 I have been rewriting the IS a bunch trying to lock it down. And the 64 deep stack will not take up much room. RE: Stack Based CPU - Chibill - 04-12-2016 Sorry for the month old bump. But I finally have time to work on this again. The stack will be decreased to 32 I think. |