2017-01-23 07:16:06 +00:00
|
|
|
|
PR#3
|
2017-03-29 15:48:15 +00:00
|
|
|
|
PREFIX /A2OSX.BUILD
|
2017-01-23 07:16:06 +00:00
|
|
|
|
NEW
|
|
|
|
|
INC 1
|
|
|
|
|
AUTO 6
|
|
|
|
|
.LIST OFF
|
|
|
|
|
.OP 65C02
|
|
|
|
|
.OR $2000
|
2017-03-29 15:48:15 +00:00
|
|
|
|
.TF /A2OSX.BUILD/SYS/KM.APPLETALK
|
2017-01-23 07:16:06 +00:00
|
|
|
|
*--------------------------------------
|
2017-03-29 15:48:15 +00:00
|
|
|
|
.INB /A2OSX.BUILD/INC/MACROS.I
|
|
|
|
|
.INB /A2OSX.BUILD/INC/IO.I
|
|
|
|
|
.INB /A2OSX.BUILD/INC/MONITOR.I
|
|
|
|
|
.INB /A2OSX.BUILD/INC/PRODOS.I
|
2017-01-23 07:16:06 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
TmpPtr1 .EQ $0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
AT.INIT >LDAXI MSG.INIT
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-01-23 07:16:06 +00:00
|
|
|
|
|
|
|
|
|
lda #$F9
|
|
|
|
|
sta TmpPtr1
|
|
|
|
|
lda #$C7
|
|
|
|
|
sta TmpPtr1+1
|
|
|
|
|
|
|
|
|
|
.1 ldy #3
|
|
|
|
|
|
|
|
|
|
.2 lda (TmpPtr1),y
|
|
|
|
|
cmp SIG.ATLK,y
|
|
|
|
|
bne .3
|
|
|
|
|
dey
|
|
|
|
|
bpl .2
|
|
|
|
|
|
|
|
|
|
ldy #4
|
|
|
|
|
lda (TmpPtr1),y
|
|
|
|
|
|
|
|
|
|
ldx #0
|
|
|
|
|
cmp #1
|
|
|
|
|
beq .4
|
|
|
|
|
|
|
|
|
|
ldx #$80
|
|
|
|
|
cmp #2
|
|
|
|
|
beq .4
|
|
|
|
|
|
|
|
|
|
pha
|
|
|
|
|
>LDAXI MSG.FAILED
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-01-23 07:16:06 +00:00
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
.3 dec TmpPtr1+1
|
|
|
|
|
lda TmpPtr1+1
|
|
|
|
|
cmp #$C0
|
|
|
|
|
bne .1
|
|
|
|
|
|
|
|
|
|
>LDAXI MSG.NOHW
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-01-23 07:16:06 +00:00
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
.4 stx WC.Flag
|
|
|
|
|
tay
|
|
|
|
|
|
|
|
|
|
lda TmpPtr1+1
|
|
|
|
|
and #$0f
|
|
|
|
|
pha Push slot #
|
|
|
|
|
phy Push Type #
|
|
|
|
|
>LDAXI MSG.HWOK
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-01-23 07:16:06 +00:00
|
|
|
|
|
|
|
|
|
>LDYA MLI+1
|
|
|
|
|
>STYA GO.OLDMLI+1
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STYA MLIATALK.PARAMS.OLDMLI
|
2017-01-23 07:16:06 +00:00
|
|
|
|
|
|
|
|
|
ldy #$14
|
|
|
|
|
lda TmpPtr1+1 Cn
|
|
|
|
|
sta MLIALLOCIRQ.PARAMS.SLOT
|
|
|
|
|
|
|
|
|
|
>STYA GO.WSCARD+1
|
|
|
|
|
bit WC.Flag
|
|
|
|
|
bmi .5
|
|
|
|
|
|
|
|
|
|
>STYA MLI+1
|
2017-04-17 19:36:00 +00:00
|
|
|
|
|
2017-04-26 14:54:24 +00:00
|
|
|
|
.5 >LDAXI MSG.ATINIT
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-01-23 07:16:06 +00:00
|
|
|
|
|
2017-04-26 14:54:24 +00:00
|
|
|
|
jsr GO.WSCARD
|
2017-01-23 07:16:06 +00:00
|
|
|
|
.DA #MLIATALK
|
|
|
|
|
.DA MLIATALK.PARAMS
|
|
|
|
|
bcs .9
|
|
|
|
|
|
2017-04-29 12:34:16 +00:00
|
|
|
|
>LDAXI MSG.IRQ
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-04-17 19:36:00 +00:00
|
|
|
|
|
2017-01-23 07:16:06 +00:00
|
|
|
|
jsr MLI
|
|
|
|
|
.DA #MLIALLOCIRQ
|
|
|
|
|
.DA MLIALLOCIRQ.PARAMS
|
|
|
|
|
bcs .9
|
|
|
|
|
|
|
|
|
|
cli
|
|
|
|
|
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>LDAXI MSG.PREFIX1
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-04-29 12:34:16 +00:00
|
|
|
|
|
2017-01-23 07:16:06 +00:00
|
|
|
|
jsr GO.OLDMLI
|
|
|
|
|
.DA #MLIGETPREFIX
|
|
|
|
|
.DA MLIGETPREFIX.PARAMS
|
|
|
|
|
bcs .9
|
|
|
|
|
|
2017-04-29 12:34:16 +00:00
|
|
|
|
>LDAXI MSG.PREFIX2
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-04-29 12:34:16 +00:00
|
|
|
|
|
2017-01-23 07:16:06 +00:00
|
|
|
|
jsr GO.WSCARD
|
2017-02-07 07:27:27 +00:00
|
|
|
|
.DA #MLISETPREFIX
|
2017-01-23 07:16:06 +00:00
|
|
|
|
.DA MLIGETPREFIX.PARAMS
|
|
|
|
|
bcs .9
|
|
|
|
|
|
|
|
|
|
>LDAXI MSG.OK
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-01-23 07:16:06 +00:00
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
.9 pha
|
|
|
|
|
>LDAXI MSG.KO
|
2017-05-02 15:56:43 +00:00
|
|
|
|
jsr PrintFAX
|
2017-01-23 07:16:06 +00:00
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
GO.WSCARD jmp $ffff Self Modifed
|
|
|
|
|
GO.OLDMLI jmp $ffff
|
|
|
|
|
*--------------------------------------
|
2017-03-29 15:48:15 +00:00
|
|
|
|
.INB /A2OSX.SRC/X.PRINTF.S
|
2017-01-23 07:16:06 +00:00
|
|
|
|
*--------------------------------------
|
2018-04-11 15:35:51 +00:00
|
|
|
|
MSG.INIT .AZ "AppleTalk Driver For A2osX\n"
|
|
|
|
|
MSG.FAILED .AZ "AppleTalk Workstation Card Failed Power Up Diagnostics : EC=%h.\n"
|
|
|
|
|
MSG.NOHW .AZ "AppleTalk Workstation Card Not Found.\n"
|
|
|
|
|
MSG.HWOK .AZ "AppleTalk Workstation Card Type #%d Found In Slot #%d.\n"
|
|
|
|
|
MSG.ATINIT .AZ "Calling ATInit...\n"
|
|
|
|
|
MSG.IRQ .AZ "Setting Up IRQ Vector...\n"
|
|
|
|
|
MSG.PREFIX1 .AZ "Getting ProDOS Prefix...\n"
|
|
|
|
|
MSG.PREFIX2 .AZ "Setting AppleTalk Prefix...\n"
|
|
|
|
|
MSG.OK .AZ "AppleTalk Driver Successfully Installed.\n"
|
|
|
|
|
MSG.KO .AZ "AppleTalk Driver Install Failed : EC=%h.\n"
|
2017-01-23 07:16:06 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
SIG.ATLK .AS "ATLK"
|
|
|
|
|
WC.Flag .BS 1
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MLIATALK.PARAMS .DA #0 Sync
|
|
|
|
|
.DA #1 INIT
|
|
|
|
|
.BS 2 RC
|
2017-02-07 07:27:27 +00:00
|
|
|
|
.DA #$40 ??? from ATINIT disassembly
|
2017-11-05 21:23:21 +00:00
|
|
|
|
MLIATALK.PARAMS.OLDMLI
|
|
|
|
|
.BS 2 ??? from ATINIT disassembly
|
|
|
|
|
.BS 5 ??? from ATINIT disassembly
|
2017-01-23 07:16:06 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
MLIALLOCIRQ.PARAMS
|
|
|
|
|
.DA #2 Param Count
|
|
|
|
|
.BS 1 Int Num returned
|
|
|
|
|
.DA #$19 Lo byte always $19 for WS Card
|
|
|
|
|
MLIALLOCIRQ.PARAMS.SLOT
|
|
|
|
|
.BS 1 hi byte : $Cn
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MLIGETPREFIX.PARAMS
|
|
|
|
|
.DA #1
|
|
|
|
|
.DA BUF.PREFIX
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
BUF.PREFIX .BS MLI.MAXPATH
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
2017-03-29 15:48:15 +00:00
|
|
|
|
SAVE /A2OSX.SRC/SYS/KM.APPLETALK.S
|
2017-01-23 07:16:06 +00:00
|
|
|
|
ASM
|