Mail Archives: djgpp/1997/01/29/15:13:35
Francis BOURQUE wrote:
>
> I've done the exercise of writing an tiny OS with DJGPP myself (which
> I lost in a HD crash) and I would like to ask two questions to those
> who tried it too:
>
> Is there a way to generate 16-bits code with DJGPP or do we still have
> to use a commercial compiler/assembler like Borland C++/v3.1???
Use djasm (comes in djdev*). It's the assembler used to produce the
real
mode stub for every djgpp executable. I used it to write my boot sector
wich loads the coff file, enters protected mode, and jumps into the
loaded image.
>
> At what step do you stop programming in assembly and use the C language?
Assembly for the boot sector, then (for me) about 10 lines of gas
assembly which turns off the floppy motor, calls the startup code (C)
and then main().
>
> Thanks for your answers.
>
No problem
Bill
--
Leave others their otherness.
- Raw text -