🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12091

SetFunction (was Re: Patching dos-library)

#12091
From: Pertti Lehtinen
Date: Mon, 03 Apr 1989 09:17
27 lines
1370 bytes
From article <6462@cbmvax.UUCP>, by eric@cbmvax.UUCP (Eric Cotton):
> 
> SetFunction does indeed return a pointer to the old function.
> 
> 	oldFunc = SetFunction(library, funcOffset, funcEntry)

	That makes things interesting.

	How does find out the address of original function?

	Does it copy old stub somewhere and return address to that?

	Or does it simply use stub as normal library stub (jmp xxx),
	and return xxx.  In this case it isn't surprising that
	it doesn't work with DOS-library.

	Exec manual don't say anything about return value,
	so does it just happen
	under certain circumstances or is it on purpose?

					Pertti Lehtinen
					pl@tut.fi

pl@tut.fi				! -------------------------------- !
Pertti Lehtinen				!  Alone at the edge of the world  !
Tampere University of Technology	! -------------------------------- !
Software Systems Laboratory
Technical Details
Message-ID: <6637@etana.tut.fi>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!lll-winken!uunet!mcvax!kth!draken!tut!kaarne.tut.fi!pl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!lll-winken!uunet!mcvax!kth!draken!tut!kaarne.tut.fi!pl
From: pl@kaarne.tut.fi (Pertti Lehtinen)
Newsgroups: comp.sys.amiga.tech
Subject: SetFunction (was Re: Patching dos-library)
Message-ID: <6637@etana.tut.fi>
Date: 3 Apr 89 09:17:36 GMT
Sender: News@tut.fi
Reply-To: pl@kaarne.tut.fi (Pertti Lehtinen)
Organization: Tampere University of Technology, Finland
Lines: 27