home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ABBUC Magazin 43B
/
ABBUC_Magazin_43_199x_ABBUC_Side_B.atr
/
lcdmini.src
< prev
next >
Wrap
Text File
|
2023-02-26
|
2KB
|
126 lines
************************************
*MINIHAENDLER FUER ARGS LCD-DISPLAY*
* HARD- u. SOFTWARE v. RoBue *
* 12.12.1993 *
************************************
* Kann nur Zeichen auf LCD ausgeben
* und LCD loeschen
* Handlername: "A:"
ORG $0600
PACTL EQU 54546
PORTA EQU 54544
PBCTL EQU 54547
PORTB EQU 54545
PHENTV EQU $E486
TIMER EQU $14
DLEFT EQU 24
DRIGHT EQU 28
CLEFT EQU 16
CRIGHT EQU 20
FUNCTION EQU 56
DON EQU 15
DCLEAR EQU 1
CMOVE EQU 4
START PLA BASIC
*
LDX #'A A:-HANDLER
LDA #TABELLE:H EINTAGEN
LDY #TABELLE:L
SEC
JSR PHENTV
BCC START1
RTS KEIN EINTRAG
*
START1 LDA #48 PIA UND
STA PACTL DISPLAY
STA PBCTL INITIALI-
LDA #255 SIEREN
STA PORTA
STA PORTB
LDA #52
STA PACTL
STA PBCTL
LDA #FUNCTION 8BIT
JSR BEFEHL
LDA #DON LCD AN
JSR BEFEHL
LDA #DCLEAR LCD LOESCHEN
JSR BEFEHL
READY LDY #0 READY
READY1 LDA TEXT,Y AUF LCD
BEQ ENDE AUSGEBEN
JSR ZEICHEN
LDX #255
WARTEN DEX
BNE WARTEN
INY
JMP READY1
ENDE RTS
TEXT ASC ' ARGS-LCD Ready'
DFB 0
TABELLE DFW OPEN-1 Handlertabelle
DFW CLOSE-1
DFW GET-1
DFW PUT-1
DFW GET-1
DFW GET-1
JMP GET
DFB 0
OPEN LDA #DON
JSR BEFEHL
LDA #DCLEAR
JSR BEFEHL
LDY #1
RTS
CLOSE LDY #1
RTS
GET RTS
PUT TAX
CPX #125 CLEAR?
BNE PUT1
LDA #1
JSR BEFEHL
LDY #1
RTS
PUT1 CPX #155 EOL?
BNE PUT2
LDY #1
RTS
PUT2 TXA
JSR ZEICHEN
LDY #1
RTS
BEFEHL STA PORTB
LDA #4
BEFEHL1 STA PORTA
LDA #0
STA PORTA
WAIT LDY TIMER
INY
INY
INY
WAIT1 CPY TIMER
BNE WAIT1
RTS
ZEICHEN STA PORTB
LDA #5
STA PORTA
NOP
LDA #0
STA PORTA
NOP
NOP
RTS¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯