Controlling Program Instructions in a Digital Computer
Original Publication Date: 1978-Feb-01
Included in the Prior Art Database: 2005-Feb-20
This program provides a simple process for controlling program execution in a digital computer. The method is based on a count in modulo M by an increment N, where N may be a variable. The process is designed so that the execution of the instruction is performed in a general register computer having two registers R1 and R2, each divided into two segments defined as R1-HI, R1-LO, R2-HI, R2-LO. In the execution of an instruction, R1-HI contains the modulus, R1-:LO contains the count, R2-:LO contains the increment, R2-HI doe not participate in the instruction execution. As shown in Fig. 1, the execution of the instruction is as follows: (1) The contents of R1-:LO and R2-:LO are added. (2) The resultant sum is compared to the content of R1-HI.