git-svn-id: https://spexeah.com:8443/svn/Asuro@47 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
57d13fb19f
commit
807397dcfc
@ -20,7 +20,7 @@ implementation
|
||||
procedure Main; interrupt; //IRQ0, called every 55ms
|
||||
begin
|
||||
CLI;
|
||||
if(proc_ptr <> nil) then begin
|
||||
if(procedure_ptr <> nil) then begin
|
||||
procedure_ptr();
|
||||
end;
|
||||
outb($0020, $20);
|
||||
|
@ -7,9 +7,11 @@ uses
|
||||
console,
|
||||
IDT;
|
||||
|
||||
type
|
||||
pp_int : procedure(byte);
|
||||
|
||||
var
|
||||
last_key : byte;
|
||||
//func pointer to active application
|
||||
procedure_ptr : pp_int = nil;
|
||||
|
||||
procedure register();
|
||||
|
||||
@ -18,7 +20,9 @@ implementation
|
||||
procedure Main; interrupt; //IRQ1, Keyboard Interrupt
|
||||
begin
|
||||
CLI;
|
||||
last_key = inb($60);
|
||||
if(procedure_ptr <> nil) tehn begin
|
||||
procedure_ptr(inb($60));
|
||||
end;
|
||||
outb($0020, $20);
|
||||
end;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user