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-09-21 15:28:46 +00:00
|
|
|
|
ldx #3
|
|
|
|
|
|
|
|
|
|
.1 txa
|
2018-05-24 15:21:38 +00:00
|
|
|
|
clc
|
2018-09-21 15:28:46 +00:00
|
|
|
|
adc ZPPtrIP
|
2018-05-24 15:21:38 +00:00
|
|
|
|
tay
|
|
|
|
|
lda ZPPtrIP+1
|
|
|
|
|
adc #0
|
2018-09-21 15:28:46 +00:00
|
|
|
|
>PUSHYA @IP[3][2][1][0]
|
2018-05-24 15:21:38 +00:00
|
|
|
|
|
2018-09-21 15:28:46 +00:00
|
|
|
|
dex
|
|
|
|
|
bpl .1
|
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
|