git-svn-id: https://spexeah.com:8443/svn/Asuro@44 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
		| @@ -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; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 aaron
					aaron