Summary
This document provides technical documentation for a subroutine designed for the PDP-8 computer. The subroutine's primary function is to output the contents of a computer word as a signed, four-digit decimal integer. It interprets binary numbers stored in two's complement format: if the number is negative, it prints a minus sign; if positive, it prints a space.
Key details include:
- Requirements: The subroutine occupies 51 core memory locations and is intended for use with a basic PDP-8 system equipped with an ASR-33 teletype.
- Usage: It is invoked using the "JMS" instruction. The subroutine does not preserve the contents of the Accumulator (AC) or the Link register upon return.
- Implementation: The document includes the assembly source code (in PAL III or MACRO-8 format), a detailed flowchart, and a test program to verify its operation.
- Dependencies: The method relies on power-of-ten conversion logic, with references to other Digital-8 library subroutines for related formatting tasks (like carriage returns or tabulations).