AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/e/SetF.lha

Mirror:Random
Showing: ppc-amigaos icongeneric icon
No screenshot available
Short:Running E code from other processes
Author: m88jrh at uk.ac.ox.ecs (Jason R. Hulance)
Uploader:m88jrh uk ac ox ecs (Jason R Hulance)
Type:dev/e
Architecture:m68k-amigaos
Date:1995-02-03
Download:dev/e/SetF.lha - View contents
Readme:dev/e/SetF.readme
Downloads:571

This archive contains a few E sources which use SetFunction() to patch some
library calls.  They serve to show how to run E code from other processes.
The important point is that E uses the A4 register for its global variables
so this must be preserved.  The examples show a running E program setting up
a storage place for a copy of A4, and then code from this program can be run
from another process (after first restoring A4).  The "other process" is the
examples is the process which calls the patched system function.

Code which does not use global variables is easier to deal with, since this
does not require restoration of A4.  However, a lot of code implicitly uses
global variables, since things like library calls use the global library
base variables.  Also, E built-in functions use a number of globals, e.g.,
WriteF uses "stdout" and "conout".


Contents of dev/e/SetF.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
-rw-r--r--   748/102      1179    2486  47.4% -lh5- 2c16 Feb  2  1995 setf.DoIO.e
-rw-r--r--   748/102      1080    2229  48.5% -lh5- a2b3 Feb  2  1995 setf.Execute.e
-rw-r--r--   748/102      1100    2282  48.2% -lh5- 42df Feb  2  1995 setf.OpenDev.e
-rw-r--r--   748/102      1135    2404  47.2% -lh5- 542c Feb  2  1995 setf.OpenWindow.e
-rw-r--r--   748/102      1425    2948  48.3% -lh5- e734 Feb  2  1995 setf.e
-rw-r--r--   748/102       518    1011  51.2% -lh5- a75a Feb  2  1995 setf.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         6 files    6437   13360  48.2%            Feb  2  1995
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>