Error with assigning ..interrupt value?

This is a discussion on Error with assigning ..interrupt value? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; why does it gives me error on second line.. of the code..? Code: int main(void) { void interrupt (*old)(); old ...

  1. #1
    Registered User jawwadalam's Avatar
    Join Date
    May 2002
    Posts
    131

    Error with assigning ..interrupt value?

    why does it gives me error on second line.. of the code..?

    Code:
    int main(void)
    {
      void interrupt (*old)();
      old = 0xffff0000; //here gives me error...
      (*old)();
    }
    One day you will ask what more important to you..
    I will say my life..
    and You will leave me with even knowing
    that
    You are my Life (L)

  2. #2
    Registered User jawwadalam's Avatar
    Join Date
    May 2002
    Posts
    131
    I have tried a lot to cast the value.. but in vain.. plz write a code line to typecast.. the values on the right.. which is causing error
    One day you will ask what more important to you..
    I will say my life..
    and You will leave me with even knowing
    that
    You are my Life (L)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer within a Struct
    By Bladactania in forum C Programming
    Replies: 11
    Last Post: 04-03-2009, 11:20 PM
  2. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM
  3. interrupt question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 02-08-2002, 09:25 PM
  4. interrupt handler functions in Visual C++ 6.0
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-07-2002, 07:06 PM
  5. Sound card interrupt problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-05-2001, 04:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21