05-05-2014, 06:02 PM
(This post was last modified: 05-05-2014, 06:03 PM by Nickster258.)
(05-05-2014, 02:44 PM)Jallen Wrote: I may be being dim witted, but where does the 6-bit address come from in the branch command? as far as I can work our, you use: 3-bit op code, 2x 3-bit register adresses, 4-bit branch condition code... that leaves (16-3-3-3-4=)3-bits... I'm confuzd
The branch address is defined in the register. One can LUI or ADDI+0 then save that data. To branch, it will simply read that data and save it to the counter register. So basically, write an immediate value and save it to a register. The comparing function would then compare/contrast the numbers, decide whether to branch or not, then write the immediate to the counter register.
I am working on this system a bit on my plot and I can show you next time I am online. It also works as a jump command.
Because of this, the computer easily supports up to 256 lines of ROM.