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)
|