mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 18:29:09 +02:00
morphunits/amigalib: implemented HookEntry function
git-svn-id: trunk@30997 -
This commit is contained in:
parent
222d64cdab
commit
df146a5767
@ -35,7 +35,7 @@ procedure DISPATCHERARG(var cl; var obj; var msg); assembler;
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses intuition;
|
uses exec, intuition, utility;
|
||||||
|
|
||||||
function DoMethodA(obj : longword; msg1 : Pointer): longword; assembler;
|
function DoMethodA(obj : longword; msg1 : Pointer): longword; assembler;
|
||||||
asm
|
asm
|
||||||
@ -111,4 +111,15 @@ asm
|
|||||||
stw r6,(r5) // msg
|
stw r6,(r5) // msg
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
type
|
||||||
|
THookSubEntryFunc = function(a, b, c: Pointer): longword;
|
||||||
|
|
||||||
|
function HookEntry: longword;
|
||||||
|
var
|
||||||
|
hook: PHook;
|
||||||
|
begin
|
||||||
|
hook:=REG_A0;
|
||||||
|
HookEntry:=THookSubEntryFunc(hook^.h_SubEntry)(hook, REG_A2, REG_A1);
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user