POV-Ray : Newsgroups : povray.off-topic : Dynamic loading : Re: Dynamic loading Server Time
29 Jul 2024 20:26:00 EDT (-0400)
  Re: Dynamic loading  
From: Invisible
Date: 20 May 2011 09:27:50
Message: <4dd66c56$1@news.povray.org>
On 20/05/2011 14:00, clipka wrote:
> Am 20.05.2011 10:12, schrieb Invisible:
>
>>> A COM file is raw machine code without any headers, at least on CP/M. A
>>> COM file was executed by reading it into 0x100 and branching to 0x100.
>>
>> That appears to be the case for MS-DOS as well. (I know gasm has a "COM
>> output" option which appears to match this description.)
>
> I'm not exactly sure, but AFAIR the MS-DOS COM files had a small header
> before the actual code. (That one was simply copied into memory as well
> though.)

http://en.wikipedia.org/wiki/COM_file

Claims there's no header for CP/M or MS-DOS.

> MS-DOS also didn't place COM files at address 0x100, but rather at a
> fixed offset in an arbitrary segment.

You might be right about that. I was reading about it because I wanted 
to write a boot loader - which really *is* loaded at a fixed physical 
address...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.