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

dev/e/fakestack.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Tells the system where AmigaE stack is.
Author:Piotr Pawlow <pp at cs.com.pl>
Uploader:Piotr Pawlow <pp cs com pl>
Type:dev/e
Version:1.0
Architecture:m68k-amigaos
Date:1997-03-22
Download:http://aminet.net/dev/e/fakestack.lha - View contents
Readme:http://aminet.net/dev/e/fakestack.readme
Downloads:525

Programs compiled with AmigaE do not use the stack given by system, but
instead they create their own.  Unfortunately, this is done in non
system-friendly way, so SPLower and SPUpper pointers in task structure keep
old values.  It cause wrong behaviour of all programs which check the
stack (StackMon, StackCheck, MCC NList).
This AmigaE module fixes the problem.  It fakes the SPLower and SPUpper
values.

How to use it:
At the beginning of the program add following line:
x:=fakestack() -> Fakes stack pointers' values
At the end type:
fakestack(x)   -> Restore old values


Example:

----------------------
MODULE 'fakestack'

PROC main()
DEF stack

  stack:=fakestack()

-> Here's your program

  fakestack(stack)
ENDPROC
----------------------


WARNING:  This is a hack.  It has been tested with registered version of
AmigaE 3.2e.  I don't know how it works with other versions of E.


If you want to contact me, write to:

Piotr Pawlow
ul. Lewartowskiego 12 m 46
00-185 Warszawa
Poland

EMail: pp at cs.com.pl


Contents of dev/e/fakestack.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  280     594  47.1% -lh5- 6560 Mar 22  1997 fakestack.e
[generic]                  251     354  70.9% -lh5- 6c6a Mar 22  1997 fakestack.m
[generic]                  648    1171  55.3% -lh5- e2e0 Mar 21  1997 fakestack.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files    1179    2119  55.6%            Mar 22  1997

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>