; TITLE "SPOUT - Syslib 4.0" NAME ('POUT') ;================================================================= ; The Libraries, Version 4, (C) 1989 by Alpha Systems Corp. ;----------------------------------------------------------------- ; Author : Harold F. Bower ; Derived from SPOUT.Z80 by Richard Conn ; Date : 11 Jun 89 ; Version : 1.3 ; Module : SPOUT ; Abstract: This module contains the routine POUT which prints ; the character in register A to the currently logged PUN: ; device with a BIOS call. No registers are affected. ; Revision: ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; Module Entry Points PUBLIC POUT ; From SYSLIB Get.. EXT @BIOSA .Z80 CSEG ;=============================================================== ; NAME - POUT ; Entry: A - Contains the character to output to PUN: ; Exit : - Nothing returned, the character is passed to the ; BIOS Punch Output routine ; Uses : - None ; Special Requirements: The system BIOS MUST start on an even ; page boundary. ;=============================================================== POUT: PUSH BC ; Save registers PUSH AF LD C,A ; Put character in C LD A,6 ; Set Punch Output BIOS Function CALL @BIOSA ; ..and do the work POP AF ; Restore the regs POP BC RET END