Page 1 of 1

How to run a program off a fat disk?

Posted: Wed Nov 14, 2001 12:00 am
by thewomble
This seems to be the most lively os board.
I'm looking for nasm source to run a program of a fat disk.
I've found bootsector code, but I'm finding it impossible to run it out of a boot sector environment.
anyhelp?

RE:How to run a program off a fat disk?

Posted: Thu Nov 15, 2001 12:00 am
by j.weeks
>On 2001-11-14 16:06:58, thewomble wrote:
>This seems to be the most lively os board.
>I'm looking for nasm source to run a program of a fat disk.
>I've found bootsector code, but I'm finding it impossible to run it out of a boot sector environment.
>anyhelp?

I once wrote a little assembly program that would
load the first sector of a floppy to 0x7c000 and
jump to that code. It'd work from DOS.

It wouldn't require much effort to use DOS calls
to load a file, rather than the first sector of a
disk.

Jeff

ps - unfortunately, no, I don't have the source
anybody, but any OS developer could write it up
in about 5 seconds :)