This document describes a subroutine designed for the PDP-8 computer that converts a double-precision binary integer into a seven-digit, positive decimal integer for output on an ASR-33 terminal.
Key details include:
- Function: It takes a 24-bit double-precision number (treating all 24 bits as magnitude bits) and outputs the corresponding decimal representation without a sign.
- Requirements: The subroutine requires 73 memory locations and is intended for use with a basic PDP-8 system equipped with an ASR-33.
- Usage: The subroutine is invoked using a
JMS UDPRNT instruction. It identifies the high-order portion of the double-precision integer from the memory location immediately following the call.
- Method: The routine repeatedly subtracts powers of ten from the input number to determine each decimal digit, which is then converted and printed on the ASR-33.
- Output: The output consists of eight consecutive decimal digits (though the abstract notes seven digits, the flow charts and program details account for the full output process).
The document includes full assembly language source code for the subroutine, technical definitions, and a flow chart outlining the logic of the print process.