Radix100Pas
A Pascal unit and conversion utility for TI-99/4A Radix-100 encoded 8-byte floating-point numbers.
The unit uRadix100.pas may be used with Free Pascal and Lazarus, or any other modern Pascal.
It provides routines for reading, converting, validating, and displaying
Radix-100 encoded 8-byte numbers:
type TRadix100 = array[0..7] of byte;
The code has been verified and tested against the mathematical examples from the official Texas Instruments Editor/Assembler Manual (Page 279). Released under the BSD-3-Clause license.
Unit Functions (uRadix100.pas)
- function IsRadix100(r: TRadix100): boolean; — Checks if r is a valid Radix-100 number
- function IsRadix100(s: ShortString): boolean; — Checks if s (8 byte, no hex) is valid
- function IsPrintableRadix100(r: TRadix100): boolean; — Checks if r is printable ASCII (> 32)
- function HexToRadix100(h: String): TRadix100; — Reads a hex string into Radix-100 format
- function Radix100ToHex(r: TRadix100): string; — Converts encoded Radix-100 into a hex string
- function StringToRadix100(s: ShortString): TRadix100; — Reads an 8-character string into Radix-100
- function Radix100ToString(r: TRadix100): ShortString; — Converts Radix-100 into an 8-character string
- function Radix100ToFloat(r: TRadix100): Extended; — Converts Radix-100 to Pascal Extended float
- function FloatToRadix100(f: Extended): TRadix100; — Converts Pascal Extended float to Radix-100
- function Radix100ToDisplay(r: TRadix100): String; — Converts to readable scientific notation
- function DisplayToRadix100(s: String): TRadix100; — Converts scientific notation string into Radix-100
Downloads & Demo
🪟 Windows 64-Bit Demo
Radix100demo.exe (Standalone converter GUI)
💻 Pascal Source Code
Radix100Source.zip (Unit & Demo project)