Eae Routines for Focal

Order Number: DEC-09-YQYA-D

This document describes a patch for the FOCAL programming language, designed to be used on systems equipped with an Extended Arithmetic Element (EAE). The patch provides the following updates:

  • Floating-Point System: It replaces the existing floating-point system with one that is nearly identical to the standard EAE Floating-Point Package, improving performance and accuracy.
  • Floating-Integer Conversion: The FITR (floating-to-integer) routine is replaced with an improved version that handles negative arguments near powers of 2 correctly, provides more consistent results for values between -0.5 and 0, and features improved scaling logic.
  • Pseudorandom Number Generation: The original FRAN function is replaced by a more statistically robust multiplicative-congruential algorithm. This new routine generates a flat distribution between -1 and 1 and includes mechanisms to reset the sequence using the switch register.

The document includes the technical specifications, performance improvements (comparing execution times for various operations), and a comprehensive assembly listing of the routines and cross-reference tables for implementation.

DEC-09-YQYA-D
2000
22 pages
Quality

Original
0.8MB

Site structure and layout ©2025 Majenko Technologies