The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: Farabi on October 19, 2011, 05:21:49 AM

Title: Loading a BINARY on HXRT
Post by: Farabi on October 19, 2011, 05:21:49 AM
My program was a plain com format assumed the mode it loaded already 32-bit. It can loaded anywhere and will detect it base address. I want to use it with HXRT and freeDOS, I tried to load HXRT DLL on syslinux but it contain interupt code on very kernel call and even worse, it was a x21 sofftware INT which is not supported by syslinux and I dont know should I run it on 32-bit mode or 16-bit mode. Any info?
Title: Re: Loading a BINARY on HXRT
Post by: dedndave on October 19, 2011, 05:29:22 AM
16-bit INT 21h
it may run in a console window
if not, boot DOS from a floppy   :bg
or try DOSBox
Title: Re: Loading a BINARY on HXRT
Post by: vanjast on October 19, 2011, 05:34:37 AM
Sounds like as Dave said... you'll need to run under a DOS environment.

Do a Google for Ralph Brown's DOS Interrupts - A comrehensive listing of the DOS interrupts.
:bg
Title: Re: Loading a BINARY on HXRT
Post by: Farabi on October 19, 2011, 09:50:24 AM
So every single call on HXRT DKRNL32.dll is a 16-bit call?? But it used a 32-bit address and there was no 66h prefix. Is that even able to use int x21 on 32-bit mode? It way too advance for me. Did not HXRT need a DOS environtment? So japhet should to be not creating himself that INT x21 Code.
Title: Re: Loading a BINARY on HXRT
Post by: Farabi on October 19, 2011, 09:52:05 AM
Quote from: dedndave on October 19, 2011, 05:29:22 AM
16-bit INT 21h
it may run in a console window
if not, boot DOS from a floppy   :bg
or try DOSBox

Owch, too bad, I already created the GUI, and I need to rewrite everything if I need to use DOS, I hate that GDT thingy  :green. Maybe freeDOS had an INTx21 installer or something  :green