2017-12-22 21:24:30 +00:00
|
|
|
|
NEW
|
2017-03-29 15:48:15 +00:00
|
|
|
|
PREFIX /A2OSX.BUILD
|
2017-12-22 21:24:30 +00:00
|
|
|
|
AUTO 4,1
|
2016-03-13 22:09:00 +00:00
|
|
|
|
.LIST OFF
|
|
|
|
|
*--------------------------------------
|
2017-02-15 16:14:41 +00:00
|
|
|
|
HST.GetByName >PULLW ZPPtrDNS
|
2016-03-13 22:09:00 +00:00
|
|
|
|
>PULLW ZPPtrIP
|
2017-03-16 07:32:24 +00:00
|
|
|
|
|
2018-05-24 15:21:38 +00:00
|
|
|
|
lda ZPPtrIP
|
|
|
|
|
clc
|
|
|
|
|
adc #3
|
|
|
|
|
tay
|
|
|
|
|
lda ZPPtrIP+1
|
|
|
|
|
adc #0
|
2018-06-18 06:22:50 +00:00
|
|
|
|
>PUSHYA @IP[3]
|
2018-05-24 15:21:38 +00:00
|
|
|
|
|
|
|
|
|
lda ZPPtrIP
|
|
|
|
|
clc
|
|
|
|
|
adc #2
|
|
|
|
|
tay
|
|
|
|
|
lda ZPPtrIP+1
|
|
|
|
|
adc #0
|
2018-06-18 06:22:50 +00:00
|
|
|
|
>PUSHYA @IP[2]
|
2018-05-24 15:21:38 +00:00
|
|
|
|
|
|
|
|
|
>LDYA ZPPtrIP
|
|
|
|
|
iny
|
|
|
|
|
bne .1
|
|
|
|
|
inc
|
2018-06-18 06:22:50 +00:00
|
|
|
|
.1 >PUSHYA @IP[1]
|
2018-05-24 15:21:38 +00:00
|
|
|
|
|
2018-06-18 06:22:50 +00:00
|
|
|
|
>PUSHW ZPPtrIP @IP[0]
|
2018-05-24 15:21:38 +00:00
|
|
|
|
|
2018-06-18 06:22:50 +00:00
|
|
|
|
>PUSHBI 8 4 PTRs on stack
|
2018-05-25 19:03:31 +00:00
|
|
|
|
>PUSHW L.HST.SScanF
|
2018-05-24 15:21:38 +00:00
|
|
|
|
>LDYA ZPPtrDNS
|
2018-05-25 19:03:31 +00:00
|
|
|
|
|
2018-06-18 06:22:50 +00:00
|
|
|
|
>SYSCALL SScanF
|
2016-03-20 22:16:01 +00:00
|
|
|
|
bcc .9
|
|
|
|
|
jmp DNS.QUERY.I
|
2016-03-13 22:09:00 +00:00
|
|
|
|
.9 rts
|
|
|
|
|
*--------------------------------------
|
2017-02-15 16:14:41 +00:00
|
|
|
|
HST.GetByAddr >PULLW ZPPtrIP
|
2016-03-13 22:09:00 +00:00
|
|
|
|
>PULLW ZPPtrDNS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sec
|
|
|
|
|
rts
|
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
2017-03-30 06:31:12 +00:00
|
|
|
|
SAVE /A2OSX.SRC/LIB/LIBTCPIP.S.HST
|
|
|
|
|
LOAD /A2OSX.SRC/LIB/LIBTCPIP.S
|
2016-03-13 22:09:00 +00:00
|
|
|
|
ASM
|