dsds
git-svn-id: https://spexeah.com:8443/svn/Asuro@201 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
@ -29,9 +29,14 @@ var
|
||||
procedure Main; interrupt; //IRQ0, 1024.19hz aprox
|
||||
var
|
||||
i : integer;
|
||||
regs : PRegisters;
|
||||
|
||||
begin
|
||||
CLI;
|
||||
asm
|
||||
MOV EAX, EBP
|
||||
MOV Regs, EAX
|
||||
end;
|
||||
for i:=0 to MAX_HOOKS-1 do begin
|
||||
if uint32(Hooks[i]) <> 0 then begin
|
||||
Hooks[i](nil);
|
||||
|
@ -41,7 +41,7 @@ end;
|
||||
procedure register();
|
||||
begin
|
||||
memset(uint32(@Hooks[0]), 0, sizeof(pp_hook_method)*MAX_HOOKS);
|
||||
IDT.set_gate(18, uint32(@Main), $08, ISR_RING_0);
|
||||
IDT.set_gate(46, uint32(@Main), $08, ISR_RING_0);
|
||||
end;
|
||||
|
||||
procedure hook(hook_method : uint32);
|
||||
|
Reference in New Issue
Block a user