bruce@ssc-vax.UUCP (Bruce Stock) (09/13/83)
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