A2osX/INC/NIC.W5100.I.txt
2020-05-17 19:34:32 +02:00

89 lines
2.3 KiB
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
*--------------------------------------
* WIZnet W5100 IO Registers
*--------------------------------------
.MA AR.SELECT
lda /W5100.AR.]1
sta W5100.AR,x
lda #W5100.AR.]1
sta W5100.AR+1,x
.EM
*--------------------------------------
.MA AR.Sn.SELECT
lda Sn.IO
sta W5100.AR,x
lda #W5100.AR.]1
sta W5100.AR+1,x
.EM
*--------------------------------------
W5100.MR .EQ $C084-$88 Mode Register
W5100.MR.RST .EQ %10000000
W5100.MR.PB .EQ %00010000
W5100.MR.PPPOE .EQ %00001000
W5100.MR.AI .EQ %00000010
W5100.MR.IND .EQ %00000001
W5100.AR .EQ $C085-$88 Memory Pointer
W5100.AR.GAR .EQ $0001
W5100.AR.SUBR .EQ $0005
W5100.AR.SHAR .EQ $0009
W5100.AR.SIPR .EQ $000F
W5100.AR.IR .EQ $0015
W5100.AR.IMR .EQ $0016
W5100.AR.RTR .EQ $0017
W5100.AR.RCR .EQ $0019
W5100.AR.RMSR .EQ $001A
W5100.AR.TMSR .EQ $001B
W5100.AR.PATR .EQ $001C
W5100.AR.PTIMER .EQ $0028
W5100.AR.PMAGIC .EQ $0029
W5100.AR.UIPR .EQ $002A
W5100.AR.UPORT .EQ $002E
W5100.AR.S0.MR .EQ $0400
W5100.AR.S1.MR .EQ $0500
W5100.AR.S2.MR .EQ $0600
W5100.AR.S3.MR .EQ $0700
W5100.AR.Sn.MR.MULTI .EQ $80
W5100.AR.Sn.MR.MF .EQ $40
W5100.AR.Sn.MR.NDMC .EQ $20
W5100.AR.Sn.MR.TCP .EQ $01
W5100.AR.Sn.MR.UDP .EQ $02
W5100.AR.Sn.MR.IPRAW .EQ $03
W5100.AR.Sn.MR.MACRAW .EQ $04
*W5100.AR.Sn.MR.PPPOE .EQ $05
W5100.AR.S0.CR .EQ $0401
W5100.AR.Sn.CR.OPEN .EQ $01
*W5100.AR.Sn.CR.LISTEN .EQ $02
*W5100.AR.Sn.CR.CONNECT .EQ $04
*W5100.AR.Sn.CR.DISCON .EQ $08
*W5100.AR.Sn.CR.CLOSE .EQ $10
W5100.AR.Sn.CR.SEND .EQ $20
*W5100.AR.Sn.CR.SENDMAC .EQ $21
*W5100.AR.Sn.CR.SENDKEEP .EQ $22
W5100.AR.Sn.CR.RCVD .EQ $40
W5100.AR.S0.IR .EQ $0402
W5100.AR.S0.SR .EQ $0403
W5100.AR.S0.PORT .EQ $0404
W5100.AR.S0.DHAR .EQ $0406
W5100.AR.S0.DIPR .EQ $040C
W5100.AR.S0.DPORT .EQ $0410
W5100.AR.S0.MSSR .EQ $0412
W5100.AR.S0.PROTO .EQ $0414
*W5100.AR.S0.TOS .EQ $0415
*W5100.AR.S0.TTL .EQ $0416
W5100.AR.S0.TX.FSR .EQ $0420
W5100.AR.S0.TX.RD .EQ $0422
W5100.AR.S0.TX.WR .EQ $0424
W5100.AR.S0.RX.RSR .EQ $0426
W5100.AR.S0.RX.RD .EQ $0428
W5100.DR .EQ $C087-$88
*--------------------------------------
TX.BASE .EQ $4000
RX.BASE .EQ $6000
RXTX.MASK .EQ $1FFF
*--------------------------------------
MAN
SAVE INC/NIC.W5100.I