Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ukma!rutgers!elbereth.rutgers.edu!dorm.rutgers.edu!dpz
From: dpz@dorm.rutgers.edu (David P. Zimmerman)
Newsgroups: comp.protocols.tcp-ip.ibmpc
Subject: Re: CMU PC/IP WD8003 driver
Message-ID: 
Date: 27 Nov 88 22:46:12 GMT
References:  <686@husc6.harvard.edu>  <690@husc6.harvard.edu>
Organization: Rutgers University
Lines: 102

Bingo!  D0000000 did it.

I'm not sure of my "appended spaces bug" theory any more.  Even with
that bug, the old driver shouldn't be ignoring the argument under DOS
3.3, so it has to be something else.  Dunno.

I see what is going on with the device name stuff - I tried

	device=d:\pcip\obj.4d\netdev.sys w

in my CONFIG.SYS, and didn't need to set NETCUST = to anything when I
used the WD8003 programs.  I'd still like to keep it generic though,
and not have to have an argument.  Therefore, I fixed the "device line
without an argument not giving a NETCUST:" bug in the new driver.  You
can now have

	device=d:\pcip\obj.4d\netdev.sys

again, using the new code, with no arguments, and get the NETCUST:
device.  It is fairly straightforward code, and thus not really
optimal, especially with the hack to get around not being able to use
relative jumps to such a far place.  I'll leave better code to you
guys, because I'm more or less sick of assembly and machines with no
reset buttons for now.  Theoretically the Rutgers version should work
across all the DOS versions.

Thanks for your help!

						David

Rutgers' diffs to netdev.asm:

*** netdev.org	Sun Nov 27 17:20:50 1988
--- netdev.asm	Sun Nov 27 17:29:38 1988
***************
*** 157,163 ****
  	push	es
  
  okay:
! 	mov	es:status[bx],00100H
  
  done:	pop	es
  	pop	ds
--- 157,163 ----
  	push	es
  
  okay:
! 	mov	WORD PTR es:status[bx],00100H
  
  done:	pop	es
  	pop	ds
***************
*** 205,211 ****
  netinit:
  	mov	WORD PTR es:lastaddr[bx],OFFSET _TEXT:_etext
  	mov	es:lastaddr+2[bx],cs
! 	mov	es:status[bx],00100H
  
  	lds	si,es:bpb[bx]
  
--- 205,211 ----
  netinit:
  	mov	WORD PTR es:lastaddr[bx],OFFSET _TEXT:_etext
  	mov	es:lastaddr+2[bx],cs
! 	mov	WORD PTR es:status[bx],00100H
  
  	lds	si,es:bpb[bx]
  
***************
*** 221,232 ****
  
  again:	mov	al,[si]
  	inc	si
  	cmp	al,020H
  	jz	again
  
  	mov	cs:name7,al
  
! 	jmp done
  _etext:
  NETDEV	ENDP
  _TEXT	ENDS
--- 221,236 ----
  
  again:	mov	al,[si]
  	inc	si
+ 	cmp	al,0aH
+ 	jz	bye
+ 	cmp	al,0dH
+ 	jz	bye
  	cmp	al,020H
  	jz	again
  
  	mov	cs:name7,al
  
! bye:	jmp done
  _etext:
  NETDEV	ENDP
  _TEXT	ENDS
-- 
David P. Zimmerman, the Dorm Networking Pilot Project, the UUCP Project, etc
dpz@dorm.rutgers.edu          rutgers!dpz          dpzimmerman@zodiac.bitnet