From df462f180ae3d2f4ee83b2441b94fcbc5316ef09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20GIBERT?= Date: Wed, 25 Mar 2015 17:30:00 +0100 Subject: [PATCH] Fixed TCPIP Crash when NIC not detected --- DRV/UTHERNET.DRV.S.txt | 3 +++ SBIN/TCPIP.S.txt | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/DRV/UTHERNET.DRV.S.txt b/DRV/UTHERNET.DRV.S.txt index 49930e5e..b0303e76 100644 --- a/DRV/UTHERNET.DRV.S.txt +++ b/DRV/UTHERNET.DRV.S.txt @@ -69,6 +69,9 @@ PP.SelfCTL.HWSleepE .EQ %00000001.00000000 PP.SelfCTL.HWStndby .EQ %00000010.00000000 PP.BufCTL .EQ $0116 PP.TestCTL .EQ $0118 +PP.TestCTL.LID .EQ %00000000.00011001 +PP.TestCTL.DisLT .EQ %00000000.10000000 +PP.TestCTL.FDX .EQ %01000000.00000000 PP.ISQ .EQ $0120 PP.RxEvent .EQ $0124 Receiver Event (RO) PP.RxEvent.LID .EQ %00000000.00000100 diff --git a/SBIN/TCPIP.S.txt b/SBIN/TCPIP.S.txt index 878eb335..d23f07ec 100644 --- a/SBIN/TCPIP.S.txt +++ b/SBIN/TCPIP.S.txt @@ -112,11 +112,13 @@ CS.INIT.DEV ldy #S.PS.hARGS >SYSCALL SYS.FreeMemA clc rts + .98 pha lda hDEVNAME >SYSCALL SYS.FreeMemA pla -.99 rts +.99 sec + rts *-------------------------------------- CS.INIT.CFGFILE >PUSHW L.CFGFILENAME >SYSCALL SYS.ExpandPStr