Page 1 of 1

executing programs....

Posted: Tue May 01, 2001 11:00 pm
by Collin
How would one execute a program in x86 asm code?

Thanks.

Collin

RE:executing programs....

Posted: Wed May 02, 2001 11:00 pm
by Chase
>On 2001-05-02 15:03:22, Collin wrote:
>How would one execute a program in x86 asm code?

Most likely there are some OS specific issues that you
need to take care of. What OS are you trying to run under?

RE:executing programs....

Posted: Wed May 02, 2001 11:00 pm
by Collin
>On 2001-05-03 10:21:53, Chase wrote:
>>On 2001-05-02 15:03:22, Collin wrote:
>>How would one execute a program in x86 asm code?
>
>Most likely there are some OS specific issues that you
>need to take care of. What OS are you trying to run under?

I was actually asking in general, sort of the principle
behind it, as I wanted to have external programs with my OS.
Do you know how this might be done? I think that maybe I would
jmp to it, but I'm not sure.

Thanks,
Collin

P.S. I want to "hardwire" the execution code into the shell, if
you are wondering how this is on-topic.

RE:executing programs....

Posted: Wed May 02, 2001 11:00 pm
by Chase
>On 2001-05-03 15:13:43, Collin wrote:
>>Most likely there are some OS specific issues that you
>>need to take care of. What OS are you trying to run under?
>
>I was actually asking in general, sort of the principle
>behind it, as I wanted to have external programs with my OS.
>Do you know how this might be done? I think that maybe I would
>jmp to it, but I'm not sure.

If you output to flat binary then you could jmp to it(after loading) if your
enviroment was already setup to the way you coded your asm (ex: 32 flat pmode).
Of course you'd either need to have your stack/segments set or set them
in the beginning of your asm code.

Otherwise you could output a known file format type and have your OS
support that or create your own format and linker/converter.