need of intrupt table under c????
Results 1 to 6 of 6

Thread: need of intrupt table under c????

  1. #1

    need of intrupt table under c????

    well ,
    i m trying to start a bit of hardware intraction using c ,one of my friend suggested me to get to knowledge of interrupt vector table for x86 family of processors...................
    can any one tell me how to generate a software interupt in c and list me out with all 256 interupts(TABLE) or a lol(LIST OF LINKs) .

    lokeshdb_ms
    smoking is really bad for ur PC....

  2. #2
    () \/V |\| 3 |) |3\/ |\|3G47|\/3
    Join Date
    Sep 2002
    Posts
    744

    Re: need of intrupt table under c????

    Originally posted here by lokeshdb_ms
    well ,
    i m trying to start a bit of hardware intraction using c ,one of my friend suggested me to get to knowledge of interrupt vector table for x86 family of processors...................
    can any one tell me how to generate a software interupt in c and list me out with all 256 interupts(TABLE) or a lol(LIST OF LINKs) .

    lokeshdb_ms
    Try these links

    Go Finland!
    Deviant Gallery

  3. #3
    math girl these links dont have list of 256 intrupts.......... but thanks a lot they got a cream information over them
    if any one familear with intrupts please-please help me
    smoking is really bad for ur PC....

  4. #4
    () \/V |\| 3 |) |3\/ |\|3G47|\/3
    Join Date
    Sep 2002
    Posts
    744
    Ralf Brown's Interrupt List This is one of the best lists on the internet. It can also be found on a page from the first list I gave you.

    Have you been googling? It might help if you spell it as interrupt instead of interupt.

    You might want to learn some hex, too. Knowing some of the things that are possible from what you are asking...and after seeing your interests in your profile ("cracking,hacking,reverse engeniearing "), I'm not sure (could be wrong, though) your intentions are quite in line with the security focus of this board.

    Go Finland!
    Deviant Gallery

  5. #5
    Junior Member
    Join Date
    Jan 2005
    Posts
    7
    well that a new thing.
    what are these interrupts?
    for wat they are used ?
    link provided is bit confusing (soory for that mathgirl).
    there r only 2 things.......... either u r into the GAME or BUSTED out OF it .................

  6. #6
    AO Curmudgeon rcgreen's Avatar
    Join Date
    Nov 2001
    Posts
    2,716
    Code:
    n bluescrn.com
    e 147 "redhead"
    e 150 "THIS PROGRAM HAS" 20 20 20 20
    e 164 "COMMITTED A HEINOUS" 20
    e 178 "CRIME AND WILL BE" 20 20 20
    e 18c "EXTERMINATED" 20 20 20 20 20 20 20 20
    
    a 100
    mov ax,0003           ;set video mode #3 (also clears screen)
    int 10                ;BIOS video services
    mov ax,09db           ;write character # DB hex
    mov bx,0001           ;display page #0,char attribute #01 (blue)
    mov cx,07d0           ;# of repetitions of char to fill screen
    int 10                ;BIOS video services
    mov bp,0150           ;offset location of first string
    mov ax,1301           ;write string service
    mov bx,001f           ;display page #0,char attribute #17 (white)
    mov cx,0014           ;length of string
    mov dx,091c           ;cursor location for first string
    int 10                ;BIOS video services (writes first string)
    mov bp,0164           ;offset of second string
    mov dx,0a1c           ;cursor location for 2nd string
    int 10                ;BIOS video services (writes 2nd string)
    mov bp,0178           ;offset of third string
    mov dx,0b1c           ;cursor location for third string
    int 10                ;BIOS video services (writes third string)
    mov bp,018c           ;offset of fourth string
    mov dx,0c1c           ;cursor location for 4th string
    int 10                ;BIOS video services (writes 4th string)
    mov ah,02             ;move cursor
    mov dx,0000           ;to upper left of screen
    int 10                ;BIOS video services
    mov ax,0c08           ;clear keyboard buffer and wait for any key
    int 21                ;DOS services
    int 20                ;terminate program (and exit to DOS)
    
    r cx
    a0
    w
    q
    Cut and paste.
    open a DOS window, Type debug<filename, it will assemble a com file, executable in DOS
    In the source code, all the "int" instructions are interrupts. They give access to OS
    or BIOS services in DOS programming. In C, you would probably have to write
    a function in assembly language and call it from C, or maybe your compiler permits
    assembly code inline in the C source file.
    I came in to the world with nothing. I still have most of it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •