This document outlines a basic subroutine for the PDP-8 computer, identified as Digital-8-22-U-Sym, designed to convert binary numbers into a 4-digit, unsigned, positive decimal integer format for teletype output. The subroutine requires 38 core locations and is intended for use with a basic PDP-8 system equipped with an ASR 33 teletype. It is called using the standard JMS instruction with the target number stored in the accumulator. The document provides a detailed program listing and explains the conversion method, which involves iteratively subtracting powers of ten from the input number to determine each decimal digit. It also notes that the subroutine is output-limited and does not handle formatting characters such as spacing or carriage returns.
Site structure and layout ©2026 Majenko Technologies