flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > set up idt (help me, please) |
Author |
|
Dex4u 13 Apr 2007, 16:44
Have you tryed using something like this, in the IDT_NOTHING int's
Code: mov ax,18h mov es,ax mov byte [es:0], "W" As you will be able to test if any work, also try puting this to see how far you get Code: mov ax,18h mov es,ax mov byte [es:0x09E], "1";some code mov ax,18h mov es,ax mov byte [es:0x09E], "2";some code mov ax,18h mov es,ax mov byte [es:0x09E], "3";some code mov ax,18h mov es,ax mov byte [es:0x09E], "4";some code and so on This is a good way to debug it. |
|||
13 Apr 2007, 16:44 |
|
mounter 14 Apr 2007, 17:05
Thanks for your concern, Dex4u.
Using nasm compiler, it works. I can't understand why it doesn't work properly. Code: ; jumped from menuetos bootloader (1000:0000) ....... jmp dword 0x08:PM_Start ....... use32 PM_Start: mov edi, 0 <-------------------- question #1 ........ ; Interrupt Descriptor Table Register IDTR: dw 256*8-1 dd 0 <-------------------- question #2 .......... IDT_KEYBOARD: dw INTERRUPT_KEYBOARD dw 0x08 db 0 db 0x8E dw 0x0001 <-------------------- question #3 |
|||
14 Apr 2007, 17:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.