[futurebasic] Re: How do you acces globals in an INIT?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1998 : Group Archive : Group : All Groups

From: Mark Goodes <wave@...>
Date: Thu, 30 Apr 1998 17:29:39 -0400
>"jGNEFilter"
>`  move.l A1,-(sp)
>`  move.l D0,-(sp)
>
>ENTERPROC
>  FN goDoMyFBCodeNow(REGISTER(A1))
>EXITPROC
>
>`  move.l (sp)+,D0
>`  move.l (sp)+,A1
>"returnoperation"
>`  jmp $00000000
>
>And that's it. I pointed the jGNEFilter to LINE "jGNEFilter". Then I
>poked the previous jGNEFilter value into the address LINE
>"returnoperation"+2.

Mars:
This seemed like a great idea.  But when I tried it, it still didn't work.
I'm going to try a few more things, but I think the problems might have
something to do with the way the original FB INIT shell is constructed.
That is, because the shell sets its patch to the start of the INIT instead
of the address of the ENTERPROC%, it might mess up all subsequent patches.
Also, given your previous post, I'm concerned that the GetNextEvent patch
uses an ENTERPROC% and the install code uses local fns instead.

Sorry to have to ask this, but is there a certain way to structure the
shell itself to allow multiple patches?  Also, is all this stuff documented
anywhere (then I won't have to ask so many questions :-)).

Thanks again.

____________
wave (Toronto, Canada)
Much better at "OOPS!" programming than OOP programming.