Lptser - Line Printer Service Routine

Order Number: XX-BB670-91

This document is an assembly language listing for a "Line Printer Service Routine" named LPTSER, dated 8-4-65. It outlines the low-level programming instructions and data structures for controlling a line printer.

Key components and functions described include:

  • Parameter Assignments: Defines various control register values (e.g., LPTCLR for clearing the buffer, LPTDON for a done flag, LPTERR for an error flag, LPTLOV for line overflow) and special I/O status word assignments.
  • LPT Datablock: Initializes printer-related variables such as character count (LPTCHR), I/O status (LPTIOS), and buffer pointers (LPTBUF, LPTPTR).
  • LPT Service Dispatch Table: Provides entry points for different printer operations, including LPTINI (initialization), LPTCLS (closing), LPTOUT (output), and ILLINP (input).
  • Routine Implementations: Detailed assembly code for functions such as:

    • Initialization (LPTINI): Clears the printer buffer.
    • Closing (LPTCLS): Handles printing any remaining buffered data, waits for I/O completion, and outputs carriage return/form feed.
    • Output (LPTOUT): Manages I/O status, checks device state, sets up I/O operations, and saves/restores system registers.
    • Interrupt Service (LPTINT): Processes printer interrupts, addressing conditions like line overflow, errors, or job completion, and dispatches to appropriate handlers. It also manages buffer states (empty, next buffer, advance buffer).
    • Error Handling (LPTERI, LPTERX, LPTERA, LPTER2): Specific routines for different error conditions, including line overflow, ensuring the system can recover or properly report issues.
    • Printer Counter and Pointer Setup (LPTSET): Initializes internal pointers and word counts for managing the printer's buffer.
  • Symbol Table: A comprehensive list of all defined symbols (variables, routines, and external references) used within the LPTSER routine, detailing their memory addresses and type (internal or external).

In essence, the document provides the foundational assembly code for controlling a line printer, encompassing its configuration, operational procedures, interrupt handling, and error management within a computing system.

XX-BB670-91
2000
11 pages
Quality

Original
0.6MB

OCR Version
0.7MB

Site structure and layout ©2025 Majenko Technologies