OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 3:32 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: executing programs....
PostPosted: Tue May 01, 2001 11:00 pm 
How would one execute a program in x86 asm code?

Thanks.

Collin


Top
  
 
 Post subject: RE:executing programs....
PostPosted: Wed May 02, 2001 11:00 pm 
>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?


Top
  
 
 Post subject: RE:executing programs....
PostPosted: Wed May 02, 2001 11:00 pm 
>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.


Top
  
 
 Post subject: RE:executing programs....
PostPosted: Wed May 02, 2001 11:00 pm 
>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.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 143 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group