Patent · US Expired

Method and apparatus for implementing an iterative program loop by comparing the loop decrement with the loop value

US5101484A · kind A · utility

30Cited by
7References
7Claims
0Family size

Assignee

Inventor

Key dates

Filing dateFeb 14, 1989
Grant dateMar 31, 1992
Priority date
Expiry dateFeb 14, 2009

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F9/325
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A method and apparatus for providing program loop control in a data processor employs a special purpose instruction that substantially reduces the program overhead associated with conditional branching at the end of a program loop. The instruction first compares a loop counter with a decrement value. If the loop counter has counted down, a loop condition code, which is stored in a dedicated register bit, is cleared. Otherwise, the loop condition code remains set to indicate that further iterations of the loop are required. The decremented value of the loop counter is then stored in a loop counter register. In parallel with decrementing of the loop counter, a conditional branch is executed based on the value of the loop condition code set in the immediately previous iteration of the loop. If the loop condition code is cleared, i.e. if the loop has been completed, program control proceeds to the instruction following the loop after execution of the next instruction in sequence. conversely, if the loop condition code is set, program control returns to the branch address, i.e. the beginning of the loop, after execution of the next instruction in sequence. All of the operations of the p…

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.