Mail Archives: djgpp/2001/07/26/11:00:05
> I am making an embedded router , i have already made a protected mode
> program in assembly language program which receives and sends data packets
> in protected mode , but as routing logic is hard to implement in assembly
> lang. i will need to code it in c lang. , so i will need a 32 bit
> instructions exe generated from c , but it shouldn't use dpmi,or dos
> interrupts as my router will operate independent of os .
>
> So can anyone guide me how can i do such thing with djgpp to say it not
> to use dpmi and generate pure bios functions using exe ?
How will this program load - in ROM or Flash? How does control
transfer to it?
One way I know this problem has been attacked was to do development
under DOS (including CWSDPMI). The program "paused" itself, the
memory contents were captured. All traces of the DOS OS were removed
from the snapshot, the memory was then stored to rom or flash and
used as the transfer point when the device was restarted. The application
called no interrupts which would go back to DOS, but continued
to use CWSDPMI as for memory management and other features like BIOS
calls they didn't want to re-implement.
- Raw text -