Using the interrupts in c language

Home Forums C Programming Using the interrupts in c language

This topic contains 3 replies, has 2 voices, and was last updated by  msaqib 12 years, 10 months ago.

  • Author
    Posts
  • #1880

    coolsoum
    Member

    Using interrupts is really fun. The interrupts give the absoulte power to the programer. The bios routine can directly be executed. things like accesing the flopy in low leve and reading sector by sector. Reading the time from bios CMOS.

    in order to execute a interrupt and get the result u need to do following steps. first define union REGS inregs,outregs pass the subroutine value through the inregs
    invoke an interrupt with the int86 command and get the result in out regs

    this is the procedure to run any interrupt subroutine.

  • #3130

    msaqib
    Participant

    Can you Please give some code sample, to do this.
    Actually I have never beeen into this area.

  • #3131

    coolsoum
    Member

    As i already explained how to use intrepput routine in BIOS now here is example to get the time from the CMOS

  • #3132

    msaqib
    Participant

    Thanks for your support.
    I have’t tried this code due to some business, After testing this code I will again ask for your support.
     
    Saqib

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble