Device and method for updating a pointer value by switching between pointer values
AssigneeMatsushita Electric Industrial Co., Ltd.
InventorYoshihiro Koga
Life of this patent
Estimating the term…
Abstract
In order to enable a pointer register device including registers called shadow registers to conduct updating operation rapidly by arithmetic operation of a pointer value between the registers, a front/back register set includes a first register and a second register. A switch control section allows a read select switch and a write select switch to select different registers. When the read select switch selects the first register and the write select switch selects the second register, the sum obtained by an adder can be stored in the second register while retaining the pointer value of the first register. In this case, the pointer value need not be transferred between the registers.
Claims5
A pointer register device, comprising:
- a register set including a plurality of pointer registers for retaining a pointer value;
- a read select section for selecting a pointer register from the register set in order to read a pointer value therefrom;
- a write select section for selecting a pointer register from the register set in order to write a pointer value thereto;
- a switch control section for controlling respective switching states of the read select section and the write select section;
- an adding section for adding the pointer value read from the pointer register selected by the read select section and a prescribed additional value, and writing the sum to the pointer register selected by the write select section;
- and
- a program-instruction execution control section responsive to a program instruction, for controlling operation of writing a pointer value applied from outside of the pointer register device to a pointer register that is selected in advance before executing the program instruction, and reading a pointer value from the selected pointer register to the outside of the pointer register device, wherein
- the switch control section allows the read select section and the write select section to select different pointer registers.
A method for updating a pointer value by using a pointer register device, the pointer register device including
- a register set including a plurality of pointer registers for retaining a pointer value,
- a read select section for selecting a pointer register from the register set in order to read a pointer value therefrom,
- a write select section for selecting a pointer register from the register set in order to write a pointer value thereto,
- a switch control section for controlling respective switching states of the read select section and the write select section,
- an adding section for adding the pointer value read from the pointer register selected by the read select section and a prescribed additional value, and writing the sum to the pointer register selected by the write select section, and
- a program-instruction execution control section responsive to a program instruction, for controlling operation of writing a pointer value applied from outside of the pointer register device to a pointer register that is selected in advance before executing the program instruction, and reading a pointer value from the selected pointer register to the outside of the pointer register device, wherein
- the switch control section allows the read select section and the write select section to select different pointer registers, the method comprising the steps of:
- switching the read select section to select a second pointer register of the register set from a state where the read select section and the write select section selects a first pointer register of the register set;
- adding a pointer value read from the second pointer register and the prescribed additional value and writing the sum to the first pointer register by using the adding section;
- and
- switching the read select section to select the first pointer register again.
A method for updating a pointer value by using a pointer register device, the pointer register device including
- a register set including a plurality of pointer registers for retaining a pointer value,
- a read select section for selecting a pointer register from the register set in order to read a pointer value therefrom,
- a write select section for selecting a pointer register from the register set in order to write a pointer value thereto,
- a switch control section for controlling respective switching states of the read select section and the write select section,
- an adding section for adding the pointer value read from the pointer register selected by the read select section and a prescribed additional value, and writing the sum to the pointer register selected by the write select section, and
- a program-instruction execution control section responsive to a program instruction, for controlling operation of writing a pointer value applied from outside of the pointer register device to a pointer register that is selected in advance before executing the program instruction, and reading a pointer value from the selected pointer register to the outside of the pointer register device, wherein
- the switch control section allows the read select section and the write select section to select different pointer registers, the method comprising the steps of:
- switching the read select section to select a second pointer register of the register set from a state where the read select section and the write select section selects a first pointer register of the register set;
- adding a pointer value read from the second pointer register and the prescribed additional value and writing the sum to the first pointer register by using the adding section;
- and
- switching the write select section to select the second pointer register.
Dependencies are inferred from the claim text.