Jump to content



Photo
- - - - -

Calling other programs


  • Please log in to reply
2 replies to this topic

#1 Zan

Zan

    Newbie

  • Members
  • Pip
  • 10 posts

Posted 03 August 2003 - 08:58 AM

If I have two asm-programs, let's say prog1 and prog2, how can I jump from prog1 to the beginning of prog2? Is there an interrupt for it or something? How is it done in sysexplorer and others, when you execute a program from it?

#2 2072

2072

    Casio over god

  • Admin
  • PipPipPipPipPipPipPipPip
  • 1565 posts
  • Gender:Male
  • Location:Somewherebourg
  • Interests:Alternative states of consciousness, programming, making things work the best they possibly can.

  • Calculators:
    AFX2 ROM 1.02, CFX-9940GT+, FX-180P-Plus

Posted 03 August 2003 - 09:13 AM

Well in ASM it's a little bit more difficult to launch another prog, but in C (like sysxplore) you just have to propperly use the exec(v) function.

if you want examples take a look to the source code of TOUCHE 3.45 (on my website)

#3 superna

superna

    Casio Addict

  • Members
  • PipPipPip
  • 88 posts

Posted 03 August 2003 - 10:54 AM

yes there are interuptions
Search Dos Interuptions List on google to find and choose Int 21h and find the Exec function
(this is in pure x86 asm code)
in just use execv
you can also look in DirXplor's sources available on my website !




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users