adding branch instruction to SAP-1

Thread Starter

Gadersd

Joined Dec 8, 2012
98
I am currently building a computer based off of the SAP-1 architecture. I looked at a SAP-2 diagram and saw that it had branching instructions. How would I add those instructions to my computer. I know that I need two flags attached to the alu, but what I don't understand is how to only jump when one of the flags output is 1. I was thinking it could be accomplished by ANDing the flags with the control bit that loads the program counter with the address.
 
Top