INIT RTL8019:
DELAY10MS
MOVX 1fH,#00H ;复位端口
DELAY10MS
MOVX 00H,#21H ;停止模式,进行配置
DELAY10MS
MOVX 00H,#00H ;切换到第0页
MOVX 0aH,#00H ;CLR BCR0
MOVX 0bH,#00H ;CLR BCR1
MOVX 0cH,#e0H ;RCR
MOVX 0dH,#e2H ;TCR
MOVX 00H,#00H
MOVX 01H,#4cH ;PSTART=4cH
MOVX 02H,#80H ;PSTOP
MOVX 03H,#4cH ;BNRY
MOVX 00H,#00H
MOVX 04H,#40H ;TPSR
MOVX 07H,#0ffH ;ISR
MOVX 0fH,#11H ;IMR
MOVX 0eH,#0cbH ;DCR
MOVX 00H,#40H ;切换到第1页
MOVX 07H,#4dH ;CURR
MOVX 08H,#00H ;MAR0
MOVX 09H,#00H ;MAR1
MOVX 0aH,#00H ;MAR2
MOVX 0bH,#00H ;MAR3
MOVX 0cH,#00H ;MAR4
MOVX 0dH,#00H ;MAR5
MOVX 0eH,#00H ;MAR6
MOVX 0fH,#00H ;MAR7
MOVX 00H,#22H ;CR
MOVX 00H,#40H ;切换到第1页
MOVX 01H,#MAC ; 写入MAC地址,共6字节
MOVX 02H, ;MAC+1
MOVX 03H, ;MAC+2
MOVX 04H, ;MAC+3
MOVX 05H, ;MAC+4
MOVX 06H, ;MAC+5
MOVX 00H,#00H
MOVX 0cH,#0ccH ;RCR
MOVX 0dH,#e0H ;TCR
MOVX 00H,#22H ;CR
MOVX 07H,#0ffH ;ISR