Keyboard IRQ

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Tom

Re:Keyboard IRQ

Post by Tom »

oh and here is my GDT code...might be a prob?(don't worry about the comments, still working with c/p to re-build)

; Data section
SECTION .data

; Make a new GDT for the IDT
; Global Descriptor Table: This tells the computer where all the segments ( now selectors ) are
gdt:
; NULL descriptor
   dw 0      ; limit 15:0
   dw 0      ; base 15:0
   db 0      ; base 23:16
   db 0      ; type
   db 0      ; limit 19:16, flags
   db 0      ; base 31:24

; unused descriptor
   dw 0
   dw 0
   db 0
   db 0
   db 0
   db 0

DataSel      equ   $-gdt
   dw 0FFFFh
   dw 0
   db 0
   db 92h      ; present, ring 0, data, expand-up, writable
   db 0CFh      ; page-granular (4 gig limit), 32-bit
   db 0

CodeSel      equ   $-gdt
   dw 0FFFFh
   dw 0
   db 0
   db 9Ah      ; present,ring 0,code,non-conforming,readable
   db 0CFh      ; page-granular (4 gig limit), 32-bit
   db 0
gdt_end:

gdt_ptr:
   dw gdt_end - gdt - 1
   dd gdt
Tom

Re:Keyboard IRQ

Post by Tom »

:-[ a inportb for gotoxy in textmode works...but port 0x60 and 0x64 won't work!
Post Reply