Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!ukc!rde From: rde@ukc.ac.uk (R.D.Eager) Newsgroups: net.micro.pc Subject: Re: Help Wanted (Please!) Message-ID: <1754@eagle.ukc.ac.uk> Date: Fri, 1-Aug-86 05:29:29 EDT Article-I.D.: eagle.1754 Posted: Fri Aug 1 05:29:29 1986 Date-Received: Sat, 2-Aug-86 23:39:38 EDT References: <239@curly.ucla-cs.ARPA> Reply-To: rde@ukc.ac.uk (R.D.Eager) Distribution: net Organization: U of Kent at Canterbury, Canterbury, UK Lines: 28 To make COMMAND.COM read the AUTOEXEC.BAT file, you must include the /P (Permanent copy) switch. To get the number of paragraphs, I do something like: ORG 0 $BEGIN=$ . . . [after last byte of wanted code] SIZE=$-$BEGIN [arithmetic to round SIZE to next 16 byte boundary] . . MOV DX,(OFFSET SIZE SHR 4) ; is this the right register? no manual here... . That should do it. -- Bob Eager rde@ukc.UUCP rde@ukc ...!mcvax!ukc!rde Phone: +44 227 66822 ext 7589