2015-03-14 21:47:37 +00:00
|
|
|
|
PR#3
|
2015-06-03 18:30:57 +00:00
|
|
|
|
PREFIX /A2OSX.SRC
|
2015-03-14 21:47:37 +00:00
|
|
|
|
NEW
|
|
|
|
|
INC 1
|
|
|
|
|
AUTO 6
|
|
|
|
|
.LIST OFF
|
|
|
|
|
.OP 65C02
|
|
|
|
|
.OR $2000
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.TF /A2OSX.BOOT/BIN/PING
|
2015-03-14 21:47:37 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
.INB INC/MACROS.I
|
|
|
|
|
.INB INC/A2OSX.I
|
|
|
|
|
.INB INC/LIBSTR.I
|
|
|
|
|
.INB INC/LIBTCPIP.I
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
PING.TIMEOUT .EQ 40 40*100ms = 4 sec.
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
ZPFrameBase1 .EQ ZPBIN
|
|
|
|
|
ZPFrameLen1 .EQ ZPBIN+2
|
|
|
|
|
ZPFramePtr1 .EQ ZPBIN+4
|
2015-11-22 22:30:06 +00:00
|
|
|
|
ZPIPCfgPtr .EQ ZPBIN+6
|
2015-03-14 21:47:37 +00:00
|
|
|
|
*--------------------------------------
|
2015-06-03 18:30:57 +00:00
|
|
|
|
* File Header (16 Bytes)
|
2015-03-14 21:47:37 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.START cld
|
|
|
|
|
jmp (.1,x)
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.DA #$61 6502,Level 1 (65c02)
|
|
|
|
|
.DA #1 BIN Layout Version 1
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA CS.END-CS.START Code Length To Relocate
|
|
|
|
|
.DA DS.END-DS.START Data Segment to Allocate
|
|
|
|
|
.DA 0
|
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
2015-03-14 21:47:37 +00:00
|
|
|
|
.1 .DA CS.INIT
|
|
|
|
|
.DA CS.RUN
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.DA CS.DOEVENT
|
2015-03-14 21:47:37 +00:00
|
|
|
|
.DA CS.QUIT
|
|
|
|
|
L.LIBSTR .DA LIBSTR
|
|
|
|
|
L.LIBTCPIP .DA LIBTCPIP
|
|
|
|
|
L.SSCANF.IP .DA SSCANF.IP
|
|
|
|
|
L.MSG0 .DA MSG0
|
|
|
|
|
L.MSG1 .DA MSG1
|
|
|
|
|
L.MSG2 .DA MSG2
|
|
|
|
|
L.MSG3 .DA MSG3
|
|
|
|
|
.DA 0
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.INIT ldy #S.PS.hARGS
|
2015-06-03 18:30:57 +00:00
|
|
|
|
lda (pPs),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne .1
|
|
|
|
|
lda #SYSMGR.ERRSYN
|
|
|
|
|
sec
|
|
|
|
|
rts
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.1 >LDYA L.LIBSTR
|
2015-11-22 22:30:06 +00:00
|
|
|
|
>SYSCALL SYS.LoadLibYA
|
2015-03-14 21:47:37 +00:00
|
|
|
|
sta hLIBSTR
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
>LDYA L.LIBTCPIP
|
2015-11-22 22:30:06 +00:00
|
|
|
|
>SYSCALL SYS.LoadLibYA
|
2015-03-14 21:47:37 +00:00
|
|
|
|
sta hLIBTCPIP
|
|
|
|
|
|
|
|
|
|
>LIBCALL hLIBTCPIP,LIBTCPIP.GET.IPCFG is TCPIP loaded ?
|
|
|
|
|
bcs .9
|
2015-11-22 22:30:06 +00:00
|
|
|
|
>STYA ZPIPCfgPtr
|
2015-03-14 21:47:37 +00:00
|
|
|
|
|
2015-11-22 22:30:06 +00:00
|
|
|
|
lda (ZPIPCfgPtr) Configured ?
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bpl .9
|
|
|
|
|
|
|
|
|
|
ldy #S.IPCFG.HDEV
|
2015-11-22 22:30:06 +00:00
|
|
|
|
lda (ZPIPCfgPtr),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
sta hDev
|
|
|
|
|
|
|
|
|
|
lda A2OSX.RANDOM16
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #Identifier
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
lda A2OSX.RANDOM16+1
|
2015-06-03 18:30:57 +00:00
|
|
|
|
iny
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
lda #0
|
|
|
|
|
ldy #Sequence
|
|
|
|
|
sta (pData),y
|
|
|
|
|
iny
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
lda (pPs)
|
2015-03-14 21:47:37 +00:00
|
|
|
|
ora #S.PS.F.EVENT Now accept events
|
2015-06-03 18:30:57 +00:00
|
|
|
|
sta (pPs)
|
2015-03-14 21:47:37 +00:00
|
|
|
|
clc
|
|
|
|
|
|
|
|
|
|
.9 rts
|
|
|
|
|
*--------------------------------------
|
2015-06-03 18:30:57 +00:00
|
|
|
|
CS.RUN >PUSHW pData DST.IP
|
2015-03-14 21:47:37 +00:00
|
|
|
|
>PUSHW L.SSCANF.IP
|
|
|
|
|
ldy #S.PS.hARGS
|
2015-06-03 18:30:57 +00:00
|
|
|
|
lda (pPs),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
>SYSCALL SYS.GetMemPtrA
|
|
|
|
|
>PUSHYA
|
|
|
|
|
>LIBCALL hLIBSTR,LIBSTR.SSCANF
|
|
|
|
|
bcc CS.RUN.IPOK
|
|
|
|
|
|
|
|
|
|
lda #PING.TIMEOUT
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #TimeOut
|
|
|
|
|
sta (pData),y
|
|
|
|
|
|
|
|
|
|
CS.RUN.DNSQUERY >PUSHW pData DST.IP
|
2015-03-14 21:47:37 +00:00
|
|
|
|
ldy #S.PS.hARGS
|
2015-06-03 18:30:57 +00:00
|
|
|
|
lda (pPs),y
|
2015-09-13 20:35:07 +00:00
|
|
|
|
>SYSCALL SYS.GetMemPtrA
|
|
|
|
|
>PUSHYA
|
2015-03-14 21:47:37 +00:00
|
|
|
|
>LIBCALL hLIBTCPIP,LIBTCPIP.DNS.QUERY
|
|
|
|
|
bcc CS.RUN.IPOK
|
|
|
|
|
|
2015-11-22 22:30:06 +00:00
|
|
|
|
>SYSCALL SYS.Sleep
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #TimeOut
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne CS.RUN.DNSQUERY
|
|
|
|
|
|
|
|
|
|
ldy #S.PS.hARGS
|
2015-06-03 18:30:57 +00:00
|
|
|
|
lda (pPs),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
>SYSCALL SYS.GetMemPtrA
|
|
|
|
|
>PUSHYA
|
|
|
|
|
>PUSHW L.MSG0
|
|
|
|
|
>LIBCALL hLIBSTR,LIBSTR.PRINTF
|
|
|
|
|
|
|
|
|
|
sec
|
|
|
|
|
CS.RUN.RTS rts
|
|
|
|
|
|
|
|
|
|
CS.RUN.IPOK ldy #S.PS.hARGS
|
2015-06-03 18:30:57 +00:00
|
|
|
|
lda (pPs),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
>SYSCALL SYS.GetMemPtrA
|
|
|
|
|
>PUSHYA
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #3
|
|
|
|
|
>PUSHB (pData),y DST.IP+3
|
|
|
|
|
dey
|
|
|
|
|
>PUSHB (pData),y DST.IP+2
|
|
|
|
|
dey
|
|
|
|
|
>PUSHB (pData),y DST.IP+1
|
|
|
|
|
>PUSHB (pData) DST.IP
|
2015-03-14 21:47:37 +00:00
|
|
|
|
>PUSHW L.MSG1
|
|
|
|
|
>LIBCALL hLIBSTR,LIBSTR.PRINTF
|
|
|
|
|
|
|
|
|
|
CS.RUN.ECHO >LIBCALL hLIBTCPIP,LIBTCPIP.NEW.ICMP.FRAME
|
|
|
|
|
bcs CS.RUN.RTS
|
|
|
|
|
>STYA ZPFrameBase1
|
2015-06-03 18:30:57 +00:00
|
|
|
|
txa
|
|
|
|
|
ldy #hFrame
|
|
|
|
|
sta (pData),y
|
|
|
|
|
|
|
|
|
|
ldx #3
|
|
|
|
|
ldy #0
|
|
|
|
|
.10 lda (pData),y
|
|
|
|
|
pha
|
|
|
|
|
iny
|
|
|
|
|
dex
|
|
|
|
|
bpl .10
|
2015-03-14 21:47:37 +00:00
|
|
|
|
|
|
|
|
|
ldx #3
|
|
|
|
|
ldy #S.IP.DST+3
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.1 pla
|
2015-03-14 21:47:37 +00:00
|
|
|
|
sta (ZPFrameBase1),y
|
|
|
|
|
dey
|
|
|
|
|
dex
|
|
|
|
|
bpl .1
|
|
|
|
|
|
|
|
|
|
ldy #S.ICMP.TYPE
|
|
|
|
|
lda #S.ICMP.TYPE.ECHOREQ
|
|
|
|
|
sta (ZPFrameBase1),y
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #Identifier
|
|
|
|
|
lda (pData),y
|
|
|
|
|
tax
|
2015-03-14 21:47:37 +00:00
|
|
|
|
iny
|
2015-06-03 18:30:57 +00:00
|
|
|
|
lda (pData),y
|
|
|
|
|
|
|
|
|
|
ldy #S.ICMP.IDENTIFIER+1
|
|
|
|
|
sta (ZPFrameBase1),y
|
|
|
|
|
dey
|
|
|
|
|
txa
|
2015-03-14 21:47:37 +00:00
|
|
|
|
sta (ZPFrameBase1),y
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #Sequence+1
|
|
|
|
|
lda (pData),y
|
|
|
|
|
tax
|
|
|
|
|
dey
|
|
|
|
|
lda (pData),y
|
|
|
|
|
inc
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne .2
|
2015-06-03 18:30:57 +00:00
|
|
|
|
pha
|
|
|
|
|
inx
|
|
|
|
|
txa
|
|
|
|
|
sta (pData),y
|
|
|
|
|
pla
|
2015-03-14 21:47:37 +00:00
|
|
|
|
|
|
|
|
|
.2 ldy #S.ICMP.SEQUENCE
|
|
|
|
|
sta (ZPFrameBase1),y
|
|
|
|
|
iny
|
2015-06-03 18:30:57 +00:00
|
|
|
|
txa
|
2015-03-14 21:47:37 +00:00
|
|
|
|
sta (ZPFrameBase1),y
|
|
|
|
|
|
|
|
|
|
lda #PING.TIMEOUT
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #TimeOut
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
|
|
|
|
|
.3 >PUSHWI S.ICMP+32
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #hFrame
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
>SYSCALL SYS.GetMemPtrA
|
|
|
|
|
>PUSHYA
|
|
|
|
|
>LIBCALL hLIBTCPIP,LIBTCPIP.SEND.ICMP.FRAME
|
|
|
|
|
bcc .4
|
2015-11-22 22:30:06 +00:00
|
|
|
|
>SYSCALL SYS.Sleep
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #TimeOut
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne .3
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.4 ldy #hFrame
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
>SYSCALL SYS.FreeMemA
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #bReply
|
|
|
|
|
lda #0
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
lda #PING.TIMEOUT
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #TimeOut
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
|
2015-11-22 22:30:06 +00:00
|
|
|
|
CS.RUN.WAIT >SYSCALL SYS.Sleep
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #bReply
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne .1
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #bCTRLC
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne CS.RUN.ERROR
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #TimeOut
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne CS.RUN.WAIT
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #3
|
|
|
|
|
>PUSHB (pData),y DST.IP+3
|
|
|
|
|
dey
|
|
|
|
|
>PUSHB (pData),y DST.IP+2
|
|
|
|
|
dey
|
|
|
|
|
>PUSHB (pData),y DST.IP+1
|
|
|
|
|
>PUSHB (pData) DST.IP
|
2015-03-14 21:47:37 +00:00
|
|
|
|
>PUSHW L.MSG2
|
|
|
|
|
>LIBCALL hLIBSTR,LIBSTR.PRINTF
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.1 ldy #bCTRLC
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne CS.RUN.ERROR
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #TimeOut
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
beq .2
|
|
|
|
|
|
2015-11-22 22:30:06 +00:00
|
|
|
|
>SYSCALL SYS.Sleep
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bra .1
|
|
|
|
|
|
|
|
|
|
.2 jmp CS.RUN.ECHO
|
|
|
|
|
|
|
|
|
|
CS.RUN.ERROR sec
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
2015-06-03 18:30:57 +00:00
|
|
|
|
CS.DOEVENT lda (pEvent)
|
2015-03-14 21:47:37 +00:00
|
|
|
|
and #S.EVT.F.TIMER is it a TIMER event?
|
|
|
|
|
beq .1 no....
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #TimeOut
|
|
|
|
|
lda (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
beq .10
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
dec
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
.10 sec do not discard TIMER event
|
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
.1 lda (pEvent)
|
|
|
|
|
and #S.EVT.F.KEY is it a KEY event?
|
|
|
|
|
beq .2
|
|
|
|
|
|
|
|
|
|
ldy #S.EVT.hDEV is Event from active IN device?
|
|
|
|
|
lda (pEvent),y
|
|
|
|
|
ldy #S.PS.hINDEV
|
2015-06-03 18:30:57 +00:00
|
|
|
|
cmp (pPs),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne .9
|
|
|
|
|
|
|
|
|
|
ldy #S.EVT.DATAHI is it an O or SAPPLE key ?
|
|
|
|
|
lda (pEvent),y
|
|
|
|
|
bne .9
|
|
|
|
|
|
|
|
|
|
ldy #S.EVT.DATALO
|
|
|
|
|
lda (pEvent),y
|
|
|
|
|
cmp #$03 Ctrl-C
|
|
|
|
|
bne .8
|
|
|
|
|
|
|
|
|
|
lda #$FF
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #bCTRLC
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bra .8
|
|
|
|
|
|
|
|
|
|
.2 lda (pEvent)
|
|
|
|
|
and #S.EVT.F.NET
|
|
|
|
|
beq .9
|
|
|
|
|
|
|
|
|
|
ldy #S.EVT.hDEV
|
|
|
|
|
lda (pEvent),y
|
|
|
|
|
cmp hDev
|
|
|
|
|
bne .9
|
|
|
|
|
|
|
|
|
|
ldy #S.EVT.DATALO Get Frame hMem
|
|
|
|
|
lda (pEvent),y
|
|
|
|
|
>SYSCALL SYS.GetMemPtrA
|
|
|
|
|
>STYA ZPFrameBase1
|
|
|
|
|
|
|
|
|
|
ldy #S.IP.PROTOCOL
|
|
|
|
|
lda (ZPFrameBase1),y
|
|
|
|
|
cmp #S.IP.PROTOCOL.ICMP
|
|
|
|
|
|
|
|
|
|
bne .9
|
|
|
|
|
|
|
|
|
|
ldy #S.ICMP.TYPE
|
|
|
|
|
lda (ZPFrameBase1),y
|
|
|
|
|
cmp #S.ICMP.TYPE.ECHOREP
|
|
|
|
|
bne .9
|
|
|
|
|
|
|
|
|
|
ldy #S.ICMP.IDENTIFIER
|
|
|
|
|
lda (ZPFrameBase1),y
|
2015-06-03 18:30:57 +00:00
|
|
|
|
tax
|
2015-03-14 21:47:37 +00:00
|
|
|
|
iny
|
|
|
|
|
lda (ZPFrameBase1),y
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #Identifier+1
|
|
|
|
|
cmp (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
bne .9
|
2015-06-03 18:30:57 +00:00
|
|
|
|
dey
|
|
|
|
|
txa
|
|
|
|
|
cmp (pData),y
|
|
|
|
|
bne .9
|
|
|
|
|
|
2015-03-14 21:47:37 +00:00
|
|
|
|
jsr CS.EVENT.REPLY
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.8 clc
|
2015-03-14 21:47:37 +00:00
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
.9 sec
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.EVENT.REPLY lda #PING.TIMEOUT
|
|
|
|
|
sec
|
|
|
|
|
sbc TimeOut
|
|
|
|
|
|
|
|
|
|
stz TimeOut.ms
|
|
|
|
|
stz TimeOut.ms+1
|
|
|
|
|
|
|
|
|
|
tay
|
|
|
|
|
beq .3
|
|
|
|
|
|
|
|
|
|
.1 lda TimeOut.ms
|
|
|
|
|
clc
|
|
|
|
|
adc #K.TIMER16RESOLUTION*20
|
|
|
|
|
sta TimeOut.ms
|
|
|
|
|
bcc .2
|
2015-06-03 18:30:57 +00:00
|
|
|
|
inc TimeOut
|
2015-03-14 21:47:37 +00:00
|
|
|
|
.2 dey
|
|
|
|
|
bne .1
|
|
|
|
|
|
|
|
|
|
.3 >PUSHW TimeOut.ms
|
|
|
|
|
ldy #S.IP.TTL
|
|
|
|
|
>PUSHB (ZPFrameBase1),y
|
|
|
|
|
|
|
|
|
|
ldy #S.ICMP.SEQUENCE+1
|
|
|
|
|
>PUSHB (ZPFrameBase1),y
|
|
|
|
|
dey
|
|
|
|
|
>PUSHB (ZPFrameBase1),y
|
|
|
|
|
|
|
|
|
|
ldy #S.IP.SRC+3
|
|
|
|
|
>PUSHB (ZPFrameBase1),y
|
|
|
|
|
dey
|
|
|
|
|
>PUSHB (ZPFrameBase1),y
|
|
|
|
|
dey
|
|
|
|
|
>PUSHB (ZPFrameBase1),y
|
|
|
|
|
dey
|
|
|
|
|
>PUSHB (ZPFrameBase1),y
|
|
|
|
|
|
|
|
|
|
>PUSHW L.MSG3
|
|
|
|
|
>LIBCALL hLIBSTR,LIBSTR.PRINTF
|
|
|
|
|
|
2015-06-03 18:30:57 +00:00
|
|
|
|
ldy #bReply
|
|
|
|
|
lda (pData),y
|
|
|
|
|
inc
|
|
|
|
|
sta (pData),y
|
2015-03-14 21:47:37 +00:00
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.QUIT lda hLIBTCPIP
|
|
|
|
|
>SYSCALL SYS.UnloadLibA
|
|
|
|
|
lda hLIBSTR
|
|
|
|
|
>SYSCALL SYS.UnloadLibA
|
|
|
|
|
clc
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
CS.END
|
|
|
|
|
LIBSTR >PSTRING "libstr.o"
|
|
|
|
|
LIBTCPIP >PSTRING "libtcpip.o"
|
|
|
|
|
SSCANF.IP >PSTRING "%d.%d.%d.%d"
|
|
|
|
|
MSG0 >CSTRING "%S: Unknown host\n"
|
|
|
|
|
MSG1 >CSTRING "PING %d.%d.%d.%d (%S)\n"
|
|
|
|
|
MSG2 >CSTRING "%d.%d.%d.%d: TimeOut/Host unreachable\n"
|
|
|
|
|
MSG3 >CSTRING "32 bytes from %d.%d.%d.%d, icmp_seq=%D, ttl=%d, time=%D ms\n"
|
|
|
|
|
hLIBSTR .BS 1
|
|
|
|
|
hLIBTCPIP .BS 1
|
|
|
|
|
hDev .BS 1
|
2015-06-03 18:30:57 +00:00
|
|
|
|
TimeOut.ms .BS 2
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
.DUMMY
|
|
|
|
|
.OR 0
|
|
|
|
|
DS.START
|
2015-03-14 21:47:37 +00:00
|
|
|
|
DST.IP .BS 4
|
|
|
|
|
hFrame .BS 1
|
|
|
|
|
TimeOut .BS 1
|
|
|
|
|
Identifier .BS 2
|
|
|
|
|
Sequence .BS 2
|
|
|
|
|
bCTRLC .BS 1
|
|
|
|
|
bReply .BS 1
|
|
|
|
|
DS.END
|
2015-06-03 18:30:57 +00:00
|
|
|
|
.ED
|
2015-03-14 21:47:37 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
|
|
|
|
SAVE BIN/PING.S
|
|
|
|
|
ASM
|