Int 21h IDT Entry Number
Posted: Tue May 13, 2008 3:41 pm
I am sort of confused, what would be the entry number for int 21h in the IDT?
Please Help,
Joseph
Please Help,
Joseph
The Place to Start for Operating System Developers
http://f.osdev.org/
What did I do wrong?Combuster wrote:http://www.catb.org/~esr/faqs/smart-questions.html
JoeTheProgrammer wrote:What did I do wrong?Combuster wrote:http://www.catb.org/~esr/faqs/smart-questions.html
Before you ask, ...
...
Use meaningful, specific subject headers
...
Be precise and informative about your problem
...
Describe the goal, not the step
Yes, that would be its offset within the IDT, however, the index is still 21h.Would it be 0x21 * 8?
Code: Select all
;====================================================;
; Idt. ;
;====================================================;
idt:
;0 interrupt 0h
dw div_error ; div error
dw sys_code
db 0
db sys_interrupt
dw 0
;1 interrupt 1h
dw debug_exception ; debug exception
dw sys_code
db 0
db sys_interrupt
dw 0
;2 interrupt 2h
dw nmi_interrupt ; non maskable interrupt
dw sys_code
db 0
db sys_interrupt
dw 0
;****FILL THE REST OF INT HERE****
;33 interrupt 21h
dw unhandled_int ; reserved
dw sys_code
db 0
db sys_interrupt
dw 0
;****FILL MORE INT HERE****
;255 interrupt FFh
dw unhandled_int ; reserved
dw sys_code
db 0
db sys_interrupt
dw 0
idt_end:
Hey, you are the 64-bit developer! :)os64dev wrote:does it also hold for x64?