2017-04-28 15:04:16 +00:00
|
|
|
|
NEW
|
2017-12-22 21:24:30 +00:00
|
|
|
|
PREFIX /A2OSX.BUILD
|
|
|
|
|
AUTO 4,1
|
2017-04-28 15:04:16 +00:00
|
|
|
|
.LIST OFF
|
|
|
|
|
.OP 65C02
|
|
|
|
|
.OR $2000
|
2018-07-23 15:28:42 +00:00
|
|
|
|
.TF BIN/ATK/ATBROWSE
|
2017-04-28 15:04:16 +00:00
|
|
|
|
*--------------------------------------
|
2018-07-23 15:28:42 +00:00
|
|
|
|
.INB INC/MACROS.I
|
|
|
|
|
.INB INC/A2OSX.I
|
|
|
|
|
.INB INC/PRODOS.I
|
|
|
|
|
.INB INC/MLI.ERR.I
|
|
|
|
|
.INB INC/APPLETALK.I
|
2017-04-28 15:04:16 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
ZPPTR1 .EQ ZPBIN
|
|
|
|
|
ZPPTR2 .EQ ZPBIN+2
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* File Header (16 Bytes)
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.START cld
|
|
|
|
|
jmp (.1,x)
|
|
|
|
|
.DA #$61 6502,Level 1 (65c02)
|
|
|
|
|
.DA #1 BIN Layout Version 1
|
|
|
|
|
.DA 0
|
2017-11-05 21:23:21 +00:00
|
|
|
|
.DA CS.END-CS.START CS
|
|
|
|
|
.DA DS.END-DS.START DS
|
|
|
|
|
.DA #16 SS
|
|
|
|
|
.DA #4 ZP
|
2017-04-28 15:04:16 +00:00
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
* Relocation Table
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.1 .DA CS.INIT
|
|
|
|
|
.DA CS.RUN
|
|
|
|
|
.DA CS.DOEVENT
|
|
|
|
|
.DA CS.QUIT
|
|
|
|
|
L.MSG.NOATK .DA MSG.NOATK
|
|
|
|
|
L.MSG.NETNODE .DA MSG.NETNODE
|
|
|
|
|
L.SEARCH.STRING .DA SEARCH.STRING
|
|
|
|
|
L.MSG.DUMP0 .DA MSG.DUMP0
|
|
|
|
|
L.MSG.DUMP .DA MSG.DUMP
|
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.INIT clc
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2017-11-05 21:23:21 +00:00
|
|
|
|
CS.RUN >STZ.G P.GetInfo Sync
|
2017-04-28 15:04:16 +00:00
|
|
|
|
lda #ATGetInfo
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STA.G P.GetInfo+1
|
|
|
|
|
|
|
|
|
|
jsr A2osX.ATKCALL
|
2017-04-28 15:04:16 +00:00
|
|
|
|
bcc .10
|
|
|
|
|
|
|
|
|
|
pha
|
|
|
|
|
>LDYA L.MSG.NOATK
|
2018-06-21 15:12:10 +00:00
|
|
|
|
>SYSCALL printf
|
2017-04-28 15:04:16 +00:00
|
|
|
|
pla
|
|
|
|
|
sec
|
|
|
|
|
.99 rts
|
|
|
|
|
|
2017-11-05 21:23:21 +00:00
|
|
|
|
.10 >LDA.G P.GetInfo+$E NODE
|
|
|
|
|
>PUSHA
|
|
|
|
|
>PUSHW.G P.GetInfo+$8 NET
|
2017-04-28 15:04:16 +00:00
|
|
|
|
>LDYA L.MSG.NETNODE
|
2018-06-21 15:12:10 +00:00
|
|
|
|
>SYSCALL printf
|
2017-04-28 15:04:16 +00:00
|
|
|
|
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STZ.G P.LookupName Sync
|
2017-04-28 15:04:16 +00:00
|
|
|
|
lda #ATLookupName
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STA.G P.LookupName+1
|
2017-04-28 15:04:16 +00:00
|
|
|
|
|
|
|
|
|
>LDYA L.SEARCH.STRING
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STYA.G P.LookupName+$08 Entry Name Ptr
|
2017-04-28 15:04:16 +00:00
|
|
|
|
|
|
|
|
|
lda #4
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STA.G P.LookupName+$C RetInt
|
|
|
|
|
>STA.G P.LookupName+$D RetCnt
|
2017-04-28 15:04:16 +00:00
|
|
|
|
|
|
|
|
|
>LDYAI 1024
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STYA.G P.LookupName+$10 BufLen
|
2017-04-28 15:04:16 +00:00
|
|
|
|
|
2018-07-20 11:51:08 +00:00
|
|
|
|
>SYSCALL getmem
|
2017-04-28 15:04:16 +00:00
|
|
|
|
bcs .99
|
|
|
|
|
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STYA.G P.LookupName+$12 BufPtr
|
2017-04-28 15:04:16 +00:00
|
|
|
|
|
|
|
|
|
>STYA ZPPTR1
|
|
|
|
|
|
|
|
|
|
txa
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STA.G hBuf
|
2017-04-28 15:04:16 +00:00
|
|
|
|
|
|
|
|
|
lda #16
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>STA.G P.LookupName+$16 MaxMatch
|
2017-04-28 15:04:16 +00:00
|
|
|
|
|
2017-11-05 21:23:21 +00:00
|
|
|
|
jsr A2osX.ATKCALL
|
2017-04-28 15:04:16 +00:00
|
|
|
|
bcs .99
|
|
|
|
|
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>LDA.G P.LookupName+$17
|
2017-04-28 15:04:16 +00:00
|
|
|
|
beq .8
|
|
|
|
|
|
|
|
|
|
>LDYA L.MSG.DUMP0
|
2018-06-21 15:12:10 +00:00
|
|
|
|
>SYSCALL printf
|
2017-04-28 15:04:16 +00:00
|
|
|
|
bcs .9
|
|
|
|
|
|
|
|
|
|
.1 lda ZPPTR1
|
|
|
|
|
clc
|
|
|
|
|
adc #5
|
|
|
|
|
sta ZPPTR2
|
|
|
|
|
lda ZPPTR1+1
|
|
|
|
|
adc #0
|
|
|
|
|
sta ZPPTR2+2
|
|
|
|
|
|
|
|
|
|
>PUSHW ZPPTR2
|
|
|
|
|
|
|
|
|
|
ldy #4
|
|
|
|
|
|
|
|
|
|
.2 >PUSHB (ZPPTR1),y
|
|
|
|
|
dey
|
|
|
|
|
bpl .2
|
|
|
|
|
|
|
|
|
|
>LDYA L.MSG.DUMP
|
2018-06-21 15:12:10 +00:00
|
|
|
|
>SYSCALL printf
|
2017-04-28 15:04:16 +00:00
|
|
|
|
bcs .9
|
|
|
|
|
|
|
|
|
|
lda ZPPTR2
|
|
|
|
|
sec
|
|
|
|
|
adc (ZPPTR2)
|
|
|
|
|
sta ZPPTR1
|
|
|
|
|
lda ZPPTR2+1
|
|
|
|
|
adc #0
|
|
|
|
|
sta ZPPTR1+1
|
|
|
|
|
|
2017-11-05 21:23:21 +00:00
|
|
|
|
>DEC.G P.LookupName+$17
|
2017-04-28 15:04:16 +00:00
|
|
|
|
bne .2
|
|
|
|
|
|
|
|
|
|
lda #0
|
|
|
|
|
.8 sec
|
|
|
|
|
.9 rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.DOEVENT sec
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2017-11-05 21:23:21 +00:00
|
|
|
|
CS.QUIT >LDA.G hBuf
|
2017-04-28 15:04:16 +00:00
|
|
|
|
beq .8
|
2018-07-18 15:30:42 +00:00
|
|
|
|
>SYSCALL FreeMem
|
2017-04-28 15:04:16 +00:00
|
|
|
|
|
|
|
|
|
.8 clc
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.END
|
2018-04-11 15:35:51 +00:00
|
|
|
|
MSG.NOATK .AZ "AppleTalk Not Loaded.\r\n"
|
|
|
|
|
MSG.NETNODE .AZ "Network/Node:$%H/$%h\r\n"
|
2017-04-28 15:04:16 +00:00
|
|
|
|
SEARCH.STRING >PSTR "*:*@*"
|
2018-04-11 15:35:51 +00:00
|
|
|
|
MSG.DUMP0 .AZ "Net Nod SkT En# Name\r\n"
|
|
|
|
|
MSG.DUMP .AZ "%H $%h $%h $%h %S\r\n"
|
2017-04-28 15:04:16 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DUMMY
|
|
|
|
|
.OR 0
|
2017-11-05 21:23:21 +00:00
|
|
|
|
DS.START
|
|
|
|
|
P.GetInfo .BS $0F
|
|
|
|
|
P.LookupName .BS $17
|
2017-04-28 15:04:16 +00:00
|
|
|
|
hBuf .BS 1
|
|
|
|
|
DS.END
|
|
|
|
|
.ED
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
|
|
|
|
SAVE /A2OSX.SRC/BIN/ATBROWSE.S
|
|
|
|
|
ASM
|