home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
ZSYS
/
SIMTEL20
/
SYSLIB
/
SLIB1.LBR
/
SCRLF.Z80
< prev
next >
Wrap
Text File
|
2000-06-30
|
768b
|
40 lines
;
; SYSLIB Module Name: SCRLF
; Author: Richard Conn
; SYSLIB Version Number: 3.6
; Module Version Number: 1.1
public crlf
;
; CRLF --
; PRINT <CR> AND <LF> ON CON:
; AFFECT NO REGS
;
EXT COUT
CRLF:
PUSH AF ; SAVE REG A AND FLAGS
LD A,CR ; PRINT <CR>
CALL COUT
LD A,LF ; PRINT <LF>
CALL COUT
POP AF ; RESTORE REG A AND FLAGS
RET
;
; ASCII SPECIAL CHARACTER EQUATES
;
NULL EQU 0 ; NULL
BEL EQU 7 ; BELL
BS EQU 8 ; BACKSPACE
TAB EQU 9 ; TAB
LF EQU 10 ; LINE FEED
CR EQU 13 ; CARRIAGE RETURN
CTRLR EQU 'R'-40H ; CTRL-R
CTRLU EQU 'U'-40H ; CTRL-U
CTRLX EQU 'X'-40H ; CTRL-X
DEL EQU 7FH ; DELETE CHAR
END