Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 8/23/84; site ucbcad.UUCP Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!ucbcad!faustus From: faustus@ucbcad.UUCP (Wayne A. Christopher) Newsgroups: net.lang.c Subject: Re: a.out.h,adventure operating systems, JMP indirects, C for Apples, etc.. Message-ID: <79@ucbcad.UUCP> Date: Fri, 19-Jul-85 21:46:47 EDT Article-I.D.: ucbcad.79 Posted: Fri Jul 19 21:46:47 1985 Date-Received: Sat, 20-Jul-85 12:20:23 EDT References: <11664@brl-tgr.ARPA> Organization: UC Berkeley CAD Group, Berkeley, CA Lines: 19 > > Basically, I'm writing a unix-like operating system on a micro to base > an adventure-type game on. I'm doing preliminary work on the unix system > itself, and the operating system seems to intercept many of the things I > must do. The problem is as follows: To load in the desired procedure > (function) into the memory swapping space, call it, free the swap space, > and continue this indefinitely. I've written a small program segment, > which SHOULD work, but appears not to. < Some code that reads in the file...> There is really no other place to put the a.out header except in the file, and it is a pretty standard thing. There is a lot of stuff that you are leaving out, including finding out the entry point of the routine you want. If you have a decent unix that has the -A and -t options to ld, then you can use a dynamic loading routine (there have been many posted to net.sources...) to do your work for you... Wayne