git-svn-id: https://spexeah.com:8443/svn/Asuro@44 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c

This commit is contained in:
aaron 2017-05-17 12:34:30 +00:00
parent a62bc4983a
commit 2ba7577506

View File

@ -7,6 +7,12 @@ uses
console, console,
IDT; IDT;
type
pp_void : procedure();
var
proc_ptr : pp_void;
procedure register(); procedure register();
implementation implementation
@ -14,6 +20,9 @@ implementation
procedure Main; interrupt; //IRQ0, called every 55ms procedure Main; interrupt; //IRQ0, called every 55ms
begin begin
CLI; CLI;
if(proc_ptr <> nil) then begin
proc_ptr();
end;
outb($0020, $20); outb($0020, $20);
end; end;
@ -22,4 +31,4 @@ begin
IDT.set_gate(32, uint32(@Main), $08, ISR_RING_0); IDT.set_gate(32, uint32(@Main), $08, ISR_RING_0);
end; end;
end. end.