flat assembler
Message board for the users of flat assembler.
Index
> Main > How to get int number inside it's handler ? |
Author |
|
ASHLEY4 22 Nov 2004, 17:30
Are you in realmode or pmode.
If i read your ? right, in my pmode os i do this: Code: div_error: pushad push es mov ax,8h mov es,ax mov byte [es:0xB809C], "D" pop es popad iret \\\\||//// (@@) ASHLEY4. Batteries not included, Some assembly required. |
|||
22 Nov 2004, 17:30 |
|
Octavio 22 Nov 2004, 20:51
Tyler Durden wrote: Yep... this is it... I write my own OS, just for debugging I print exception number to display in every single exception handler... But this is takes so much space I want to write something like "universal handler"... Is it possible to get interrupt number inside the handler ? Then all I have to do is to print it... There must be some bit or something in APIC controller, but I can't find it somehow HELP ! Yes you can check the pic ,but only for ints generated by external hardware. this method don´t need too much memory Code: _int0: push 0 jmp generic_int _int1: push 1 jmp generic_int _int2: push 2 jmp generic_int in 32bit mode only 4-7 bytes for each interrupt. |
|||
22 Nov 2004, 20:51 |
|
Tyler Durden 23 Nov 2004, 09:57
Quote: in my pmode os i do this: I do the same way... But it's suck how to get this exceptions numbers ? May be from one of the MSRs ? |
|||
23 Nov 2004, 09:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.