TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: ALL
from: SAM IZZO
date: 1998-01-04 16:38:00
subject: Registers on entry

Hi all!
Can anyone tell me if it's safe to assume that all registers are zero on 
ntry
to a .COM program?
Also, why can't I allocate memory in my .EXEs?  Do I have to do that 
deallocate
thing that I've done in .COMs?  For example, with the following code:
.model medium
.stack
.code
start:
        mov ah, 48h
        mov bx, 64d
        int 21h
	mov ax,4c00h
	int 21h
end
When I run it thru Turbo Debugger, AX = 8, which is "insufficient memory".
Doesn't it say in the .EXE header how much memory my code needs?
Thanks,
Sam
... Windows:  The reason BASIC programmers feel so macho.    
--- FMail/386 1.20+
---------------
* Origin: Comms Barrier BBS +61.3.9585.1112, +61.3.9583.6119 (3:632/533)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.