need help for IDT using masm

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.
Post Reply
xavmoss
Posts: 14
Joined: Thu Oct 12, 2006 2:56 am

need help for IDT using masm

Post by xavmoss »

I want to ask ask how to declare IDT in protected mode in masm syntax.
And how to bound the code to interrupt that I have made, exception, and PIC. Thanks
what code can I use

Code: Select all


IDTDESC struc
  offset0_15	dw	?		; low word of handler offset
  selector0_15	dw	?		; segment selector
  zero_byte	db	0		; unused in this descriptor format
  access1	db	?		; access right
  offset16_31	dw	?		; high word of handler offset
IDTDESC ends


interrupt0	interrupt_descriptor	<int0,8,0,8eh,0>

or use this?

Code: Select all

IDT     	dq  0

interrupt0	dw int0h
		dw 8
		dw 0
		dw 8fh
		dw 0
And how to change the base address for INT? Is different than GDT or not?
Post Reply