A2osX/BIN/IPCONFIG.S.DEV.txt
2019-01-05 20:33:08 +00:00

40 lines
662 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
PREFIX
AUTO 4,1
.LIST OFF
*--------------------------------------
* PULLW = PTR to S.IPCFG
*--------------------------------------
DEV.Bind >PUSHBI 0
>LDYA L.DEVNAME
>SYSCALL open
bcc .1
inc DEVNAME+8
lda DEVNAME+8
cmp #'8'
bne DEV.Bind
>LDYA L.MSG.DEV.KO
>SYSCALL puts
lda #MLI.E.NODEV
sec
rts
.1 ldy #S.IPCFG.hFD
sta (pIPCFG),y
>PUSHW L.DEVNAME
>PUSHBI 2
>LDYA L.MSG.DEV.OK
>SYSCALL printf
clc
rts
*--------------------------------------
MAN
SAVE USR/SRC/SBIN/IPCONFIG.S.DEV
LOAD USR/SRC/SBIN/IPCONFIG.S
ASM