Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site ssc-vax.UUCP Path: utzoo!linus!decvax!harpo!floyd!vax135!cornell!uw-beaver!ssc-vax!bruce From: bruce@ssc-vax.UUCP (Bruce Stock) Newsgroups: net.micro,net.info.terms Subject: Z-100 Termcap and TermSW Message-ID: <509@ssc-vax.UUCP> Date: Tue, 13-Sep-83 15:14:33 EDT Article-I.D.: ssc-vax.509 Posted: Tue Sep 13 15:14:33 1983 Date-Received: Wed, 14-Sep-83 01:26:53 EDT Organization: Boeing Aerospace, Seattle Lines: 54 For those of you who have been using the vt52 termcap with your Z-100, here is a modified version which makes better use of the Z-100's capabilities: z100:\ :bs:cd=\EJ:ce=\EK:cl=\EH\EJ:cm=5\EY%+ %+ :co#80:li#24:nd=\EC:\ :pt:sr=\EI:up=\EA:ku=\EA:kd=\EB:kr=\EC:kl=\ED:\ :al=\EL:dl=\EM:im=\E@:ei=\EO:so=\Ep:se=\Eq:dc=\EN: This termcap has only been tested to 1200 baud and with vi. It may therefore be necessary to add delays in other environments. The following .asm file is a dumb terminal program for those who want to get up quick at minimum (ie zero) cost. Assemble, link, and convert it to a .com file for use under Z-Dos. TITLE STERM" - Simple terminal program Page ,132 .XLIST INCLUDE DEFCHR.ASM INCLUDE DEFMS.ASM .LIST PGMSEG SEGMENT ASSUME CS:PGMSEG,SS:PGMSEG,DS:PGMSEG,ES:NOTHING ORG 100H RECE: MOV AH,CHR_STATUS MOV AL,CHR_SFGS CALL BIOS_AUXFUNC ; check status of auxin AND AH,CHRS_RXR ; and see if char ready JZ SHORT XMIT ; go check keyboard if nothing coming in CALL BIOS_AUXIN ; else get character CALL BIOS_CONOUT ; and put it on screen XMIT: MOV AH,CHR_STATUS MOV AL,CHR_SFGS CALL BIOS_CONFUNC ; go check status of keyboard AND AH,CHRS_RXR ; check for char ready from keboard JZ RECE ; loop if no key ready CALL BIOS_CONIN ; else go get char from keyboard CALL BIOS_AUXOUT ; and transmit char JMP SHORT RECE PGMSEG ENDS END RECE