mirror of
https://github.com/A2osX/A2osX.git
synced 2025-08-07 11:26:36 +00:00
Kernel 0.9.2
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -83,13 +83,15 @@ CS.RUN.IPOK ldy #S.PS.ARGC
|
|||||||
>SYSCALL GetArg
|
>SYSCALL GetArg
|
||||||
>PUSHYA
|
>PUSHYA
|
||||||
>LIBCALL hLIBTCPIP,LIBTCPIP.HST.GETBYNAME
|
>LIBCALL hLIBTCPIP,LIBTCPIP.HST.GETBYNAME
|
||||||
bcc CS.RUN.HOSTOK
|
bcc CS.RUN.HOSTOK
|
||||||
|
>SLEEP
|
||||||
jsr Wait.Timeout
|
jsr Wait.Timeout
|
||||||
bcc .2
|
bcc .2
|
||||||
|
|
||||||
lda #1
|
lda #1
|
||||||
>SYSCALL GetArg
|
>SYSCALL GetArg
|
||||||
>PUSHYA
|
>PUSHYA
|
||||||
|
>PUSHBI 2
|
||||||
>LDYA L.MSG.UNKNOWN
|
>LDYA L.MSG.UNKNOWN
|
||||||
>SYSCALL printf
|
>SYSCALL printf
|
||||||
bra .99
|
bra .99
|
||||||
@@ -101,10 +103,22 @@ CS.RUN.IPOK ldy #S.PS.ARGC
|
|||||||
sec
|
sec
|
||||||
rts
|
rts
|
||||||
|
|
||||||
CS.RUN.HOSTOK lda #1
|
CS.RUN.HOSTOK ldy #S.PS.ARGC
|
||||||
|
lda (pPs),y
|
||||||
|
cmp #2
|
||||||
|
bcc CS.RUN.PORTOK
|
||||||
|
|
||||||
|
lda #2
|
||||||
|
>SYSCALL GetArg
|
||||||
|
>SYSCALL atoi
|
||||||
|
>STYA Socket.Dst.Port
|
||||||
|
|
||||||
|
CS.RUN.PORTOK lda #1
|
||||||
>SYSCALL GetArg
|
>SYSCALL GetArg
|
||||||
>PUSHYA
|
>PUSHYA
|
||||||
|
|
||||||
|
>PUSHW Socket.Dst.Port
|
||||||
|
|
||||||
ldy #DST.IP+3
|
ldy #DST.IP+3
|
||||||
ldx #3
|
ldx #3
|
||||||
|
|
||||||
@@ -115,7 +129,7 @@ CS.RUN.HOSTOK lda #1
|
|||||||
dex
|
dex
|
||||||
bpl .1
|
bpl .1
|
||||||
|
|
||||||
>PUSHBI 6
|
>PUSHBI 8
|
||||||
>LDYA L.MSG.HOSTOK
|
>LDYA L.MSG.HOSTOK
|
||||||
>SYSCALL printf
|
>SYSCALL printf
|
||||||
|
|
||||||
@@ -250,7 +264,7 @@ hLIBTCPIP .BS 1
|
|||||||
MSG.IPKO .AZ "TCP/IP Not Loaded/Configured."
|
MSG.IPKO .AZ "TCP/IP Not Loaded/Configured."
|
||||||
MSG.USAGE .AZ "Usage : TELNET <ip|host> [port]"
|
MSG.USAGE .AZ "Usage : TELNET <ip|host> [port]"
|
||||||
MSG.UNKNOWN .AZ "%s: Unknown host\r\n"
|
MSG.UNKNOWN .AZ "%s: Unknown host\r\n"
|
||||||
MSG.HOSTOK .AZ "Connecting to %d.%d.%d.%d (%s) ...\r\n"
|
MSG.HOSTOK .AZ "Connecting to %d.%d.%d.%d:%D (%s) ...\r\n"
|
||||||
MSG.SKTKO .AZ "Failed to Open Socket."
|
MSG.SKTKO .AZ "Failed to Open Socket."
|
||||||
MSG.SKTOK .AZ "Connected."
|
MSG.SKTOK .AZ "Connected."
|
||||||
MSG.SKTERR .AZ "Socket Error : $%h\r\n"
|
MSG.SKTERR .AZ "Socket Error : $%h\r\n"
|
||||||
|
Reference in New Issue
Block a user