Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site voder.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!zehntel!dual!amd!fortune!hpda!hplabs!nsc!voder!gino
From: gino@voder.UUCP (Gino Bloch)
Newsgroups: net.micro.pc
Subject: Re: Help with PCDOS problem
Message-ID: <478@voder.UUCP>
Date: Fri, 26-Oct-84 18:47:08 EST
Article-I.D.: voder.478
Posted: Fri Oct 26 18:47:08 1984
Date-Received: Sun, 28-Oct-84 06:47:47 EST
References: <168@hocsl.UUCP>
Organization: National Semiconductor, Santa Clara
Lines: 38

>> I now have an assembly language program whose entire script is:
>> abc	segment	common
>> xyz	proc
>> 	assume	cs:abc,ds:abc
>> ;
>> 	int	20H	; don't do anything, just halt
>> ;
>> xyz	endp
>> abc	ends
>> 	end
>> 
>> If I run it under DEBUG, it terminates normally.
>> If I run it from a .BIN file (even right after a boot),
>> the system hangs.
>> 			Dave Tutelman

>  BTW: Just because you say 'assume ds:someware' don't make it so,
>  and DOS does not set cs and ds correctly for .com files, you have
>  to do it.
>  Alan Fargusson.

First, in response to Alan Fargusson:
    From the IBM DOS Technical Manual Version 2.10, page 6-8:
	"For .COM Programs:
	    All four segment registers contain the segment address of the
	    initial allocation block, that starts with the Program Segment
	    Prefix control block"

Back to the original question.  Since you can't execute a .bin file, Dave,
I suspect you actually executed a .exe file that you had left lying around.
That will hang.  Try these five things (they just worked for me 5 minutes ago):
    1.  Assemble whatever
    2.  Run exe2bin on whatever
    3.  DELETE whatever.exe
    4.  RENAME whatever.bin to whatever.com
    5.  whatever
-- 
Gene E. Bloch (...!nsc!voder!gino)