A2osX/LIB/LIBTCPIP.S.HST.txt

42 lines
683 B
Plaintext
Raw Normal View History

2017-12-22 21:24:30 +00:00
NEW
2018-11-17 17:17:13 +00:00
PREFIX
2017-12-22 21:24:30 +00:00
AUTO 4,1
.LIST OFF
*--------------------------------------
HST.GetByName >PULLW ZPPtrDNS
>PULLW ZPPtrIP
2018-09-21 15:28:46 +00:00
ldx #3
.1 txa
clc
2018-09-21 15:28:46 +00:00
adc ZPPtrIP
tay
lda ZPPtrIP+1
adc #0
2018-09-21 15:28:46 +00:00
>PUSHYA @IP[3][2][1][0]
2018-09-21 15:28:46 +00:00
dex
bpl .1
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
>LDYA ZPPtrDNS
2018-05-25 19:03:31 +00:00
2018-06-18 06:22:50 +00:00
>SYSCALL SScanF
bcc .9
jmp DNS.QUERY.I
.9 rts
*--------------------------------------
HST.GetByAddr >PULLW ZPPtrIP
>PULLW ZPPtrDNS
sec
rts
*--------------------------------------
MAN
2018-11-17 17:17:13 +00:00
SAVE USR/SRC/LIB/LIBTCPIP.S.HST
LOAD USR/SRC/LIB/LIBTCPIP.S
ASM