* XC * TR * TR ADR * mx %11 org $2000 lst off COUT = $fded * GS Port Driver Bios * written by Andy Nicholas on July 26, 1987 * * History: * * 11/07/89 AMW * 1. History section added * 2. Checked and or modified for LLUCE * 3. Section titles added * * 11/10/89 AMW * Added interrupt buffers *-------------------------- * rel *SLOT KBD 'Slot to assemble for (1/2)' SLOT = 2 N0 = SLOT*16 CN = SLOT!$C0 SLTADR = SLOT!$C0*256 FLAG = SLOT-1 CR = $0d LF = $0a jsr INIT jsr SETSPEED ldx #>strSA ldy #strPL ldy #B4800 :SETBAUD STX :BAUDRD+1 STA :BAUDRD+2 LDX #CN LDY #N0 JSR DOINIT LDX #0 :BAUDRD LDA -1,X BEQ :FINISH JSR OUT INX BRA :BAUDRD :FINISH LDX #0 :LOOP LDA PORTINIT,X BEQ :DONE JSR OUT INX BRA :LOOP :DONE LDA #OUT_BUF LDY #0 JSR DOEXT RTS PORTINIT DB 1 ASC '0D' ;8 bits DB 1 ASC '0P' ;no parity * db 1 * asc '0N' db 1 asc 'LD' db 1 asc 'ME' DB 1 ASC 'AD' ;auto-tabbing DB 1 ASC 'XD' ;no xoff recognition DB 1 ASC 'FD' ;no find keyboard DB 1 ASC 'CD' ;no column overflow DB 1 ASC 'ED' ;echo disabled * DB 1 * ASC 'MD' ;no lf masking DB 1 ASC 'BE' ;buffering enabled DB 1 ASC 'Z' DB 0 ;no more control characters B4800 DB 1 ASC '12B'00 ;accept 4800 Baud *------------------------------- OUT_BUF DB 4 ;Parameters to set the DB $13 ;Output buffer DA 0 ADRL BUFFER ;Buffer it where DA 2 ;Buffer 2 bytes *------------------------------- CARRLIST DB 3 ;Parameter list for DB 6 ;detecting carrier drop DA 0 CARRBITS DA 0 ;Carrier status here *------------------------------- DTRLST DB 3 ;Parameter list for DB $B ;setting DTR DA 0 DTRSTATE DA 0 ;Bit 7 affects DTR *------------------------------- FLUSHLST DB 2 ;parameter list for flushing input queue DB $14 DA 0 *------------------------------- BUFFER ds 256