A2osX/LIB/LIBTCPIP.S.HST.txt

41 lines
678 B
Plaintext
Raw Normal View History

2017-12-22 22:24:30 +01:00
NEW
2019-05-05 19:15:37 +02:00
AUTO 3,1
.LIST OFF
*--------------------------------------
HST.GetByName >PULLW ZPPtrDNS
>PULLW ZPPtrIP
2018-09-21 17:28:46 +02:00
ldx #3
.1 txa
clc
2018-09-21 17:28:46 +02:00
adc ZPPtrIP
tay
lda ZPPtrIP+1
adc #0
2018-09-21 17:28:46 +02:00
>PUSHYA @IP[3][2][1][0]
2018-09-21 17:28:46 +02:00
dex
bpl .1
2018-06-18 08:22:50 +02:00
>PUSHBI 8 4 PTRs on stack
2018-05-25 21:03:31 +02:00
>PUSHW L.HST.SScanF
>LDYA ZPPtrDNS
2018-05-25 21:03:31 +02:00
2019-05-05 19:15:37 +02:00
>SYSCALL2 SScanF
bcc .9
jmp DNS.QUERY.I
.9 rts
*--------------------------------------
HST.GetByAddr >PULLW ZPPtrIP
>PULLW ZPPtrDNS
sec
rts
*--------------------------------------
MAN
2018-11-17 18:17:13 +01:00
SAVE USR/SRC/LIB/LIBTCPIP.S.HST
LOAD USR/SRC/LIB/LIBTCPIP.S
ASM