mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:19:27 +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
|
||||
|
||||
uses intuition;
|
||||
uses exec, intuition, utility;
|
||||
|
||||
function DoMethodA(obj : longword; msg1 : Pointer): longword; assembler;
|
||||
asm
|
||||
@ -111,4 +111,15 @@ asm
|
||||
stw r6,(r5) // msg
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user