int 8 
Author Message
 int 8

Hi , how are you
would you like to tell me why i don't handle int 8 but my program will not
cause any fault , the computer clock should invoke int 8 every second
?thanks a lot

my code is here:
.model tiny
main_start      segment
.386p
        .startup
        mov     ax,cs
        shl     eax,4
        mov     os_code_base1,ax   ;os code base
        shr     eax,8
        mov     os_code_base2,ah

        mov     eax,cs
        shl     eax,4
        add     eax,offset dummy
        mov     dword ptr GDT_address,eax   ;GDTR address

        mov     eax,cs
        shl     eax,4
        add     eax,offset interrupt
        mov     dword ptr IDT_address,eax   ;IDTR address

        cli
        lgdt    fword ptr cs:gdt_limit
        lidt    fword ptr cs:idt_limit

 ;get into protected mode
        mov     eax,cr0         ; get CR0 into EAX
        or      al,1            ; set Protected Mode bit
        mov     cr0,eax
        db      0eah
        dw      offset  start32,8
start32:
        int     0
        hlt
;build GDT
        ;null descriptor
        dummy dw 0
        dw 0
        dw 0
        dw 0

        ;308
        dw 0ffffh
        os_code_base1   dw 0000h
        os_code_base2   db 0
        db 9ah
        db 0cfh
        db 0

        ;310
 ;GDTR
        gdt_limit       dw 0fh
        gdt_address     dd 0h

        ;316
 ;build IDT
        ;int     0
        interrupt       dw near ptr handler      ;offset
 dw 8h ;selector
 db 0 ;reserved
 db 8eh ;type
 dw 0 ;offset

        ;31e
 ;IDTR
        idt_limit      dw 0fh
        idt_address    dd 0h

        ;324
main_start      ends

inthan  segment use32
        org     178h
        handler:
        mov     eax,1234h
        iretd
inthan  ends
end



Sat, 03 Aug 2002 03:00:00 GMT  
 int 8
And would you like to tell me how many things (may be interrupt) that i need
to take care to prevent the computer cause a shutdown ? IT seem i don't need
to do much .
thanks


Sat, 03 Aug 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. IO Int convertion to Int

2. Why is Int / Float still Int?

3. Haskell random function that returns Int instead of IO Int

4. Pb with syntax of loadURL(JSObject url, int urlSize, JSObject parameter, int paramSize)

5. Int 13/08 vs. Int 41

6. Int 13h instead of Int 21h Func 7305h

7. Calling findfirst (int 21h,4Eh) from whithin int 1Ch

8. INT 21/ah=3f and INT 28 idleing

9. Long int to int

10. proposed language change to int/int==float (was: PEP0238 lament)

11. proposed language change to int/int==float (was: PEP0238 lame nt)

12. Swig and int and int*

 

 
Powered by phpBB® Forum Software