63.3.3. FFP-12 Floating Point Processor

63.3.3.1. Instrukce FPP-12

Tento modul obsahuje samostatný procesor pro výpočty v plovoucí řádové čárce.

Data jsou ukládána ve vlastním 36-ti bitovém formátu s plovoucí řádovou čárkou. Jedno číslo je tedy reprezentováno třemi po sobě jdoucími slovy. První slovo obsahuje exponent a jeho znaménko. Druhé slovo obsahuje významější část mantisy a jeji znaménko. Třetí slovo obsahuje 12 nejméně významných bitů mantisy. Pro vlastní výpočty je mantisa reprezentována jako 28 bitové slovo. Při ukládání do paměti se normalizuje na 24 bitů.

Obrázek 63.17. Formát dat FFP-12

  0   1   2   3   4   5   6   7   8   9  10  11
+---+---+---+---+---+---+---+---+---+---+---+---+
| S |              E X P O N E N T              |           
+---+---+---+---+---+---+---+---+---+---+---+---+

  0   1   2   3   4   5   6   7   8   9  10  11
+---+---+---+---+---+---+---+---+---+---+---+---+
| S |              MSW OF MANTISSA              |
+---.---+---+---+---+---+---+---+---+---+---+---+
    ^BINARY POINT

  0   1   2   3   4   5   6   7   8   9  10  11
+---+---+---+---+---+---+---+---+---+---+---+---+
|                LSW OF MANTISSA                |
+---+---+---+---+---+---+---+---+---+---+---+---+

Modul umožňuje také pracovat s čísly v pevné řádové čárce.

Obrázek 63.18. Formát Double Precision FFP-12

  0   1   2   3   4   5   6   7   8   9  10  11
+---+---+---+---+---+---+---+---+---+---+---+---+
| S |                                           |
+---.---+---+---+---+---+---+---+---+---+---+---+
    ^BINARY POINT

 12  13  14  15  16  17  18  19  20  21  22  23
+---+---+---+---+---+---+---+---+---+---+---+---+
|                                               |
+---+---+---+---+---+---+---+---+---+---+---+---+

Tabulka 63.16. FFP-12 Active Parameter Table Format

PFiled Bits of Operand AddressField Bits of Base Reg.Field Bits of Index Register LocationField Bits of FPC
P+1Lower 12 bits of FPC
P+2Lower 12 bits of index register location
P+3Lower 12 bits od Base Reg
P+4Lower 12 bits of operand address
P+5Exponent of FAC
P+6MSW of FAC
P+7LSW of FAC
NOTE: APT address points to location P.

Tabulka 63.17. IOT instrukce pro FPP-12

názevkódOCTpopis
FPINT6551Skip on FPP "interrupt request" flag.
FPHLT6554Halt the processor at the end of the current instruction. Store active registers in core, set a status register bit, and the "interrupt request" flag.
FPCOM6553If the FPP is not running and the FPP "interrupt request flag" has been reset, set the command register to the contents of the AC. The three least significant bits of the AC set the field bits of the "Active Parameter Table" address. If the FPP is running or the interrupt request flag is set, the instruction is ignored.
FPICL6552Clear the FPP "interrupt request" flag.
FPST6555If the FPP is not running and the FPP "interrupt request flag" is reset, set the location of the "Active Parameter Table" to the contents of the AC, initiate the FPP and skip the next instruction. If the FPP is not running or the FPP "interrupt request flag" has not been reset, the instruction is ignored.
FPRST6556Read the FPP status register into the AC.
FPIST6557Skip on FPP "interrupt request" flag. If the skip is granted, clear the flag and read the FPP status request into the AC.
Licence Creative Commons
Elektronika a počítače, jejímž autorem je Radek Hnilica, podléhá licenci Creative Commons Uveďte autora-Nevyužívejte dílo komerčně-Zachovejte licenci 3.0 Česká republika .