Thread: MSVS 6.0 does not read BIOS interrupts

  1. #1
    fatpotatohead
    Guest

    MSVS 6.0 does not read BIOS interrupts

    Whenever i input code which calls the mircoprocesser these errors occure

    void VGAScreen (){
    union REGS r;
    r.h.ah = 0;
    r.h.al = 0x13;
    int86(0x10, &r, &r);
    return;

    \\error C2079: 'r' uses undefined union 'REGS'
    \\error C2224: left of '.h' must have struct/union type
    \\error C2224: left of '.h' must have struct/union type
    \\warning C4013: 'int86' undefined; assuming extern returning int

    So how do i make it so M$ compiles without errors????

  2. #2
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    This is a hopeless cause in VC++6.0 because it is a relatively modern compiler. You need to use an ancient compiler, try Borland 5.0 which supports DOS, and make sure you have a really old operating system.
    I compile code with:
    Visual Studio.NET beta2

  3. #3
    Unregistered
    Guest
    Hmm... I hope Windows 98 is ancient!

  4. #4
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    Windows 9X is very ancient! Okay than you need an ancient compiler now.
    I compile code with:
    Visual Studio.NET beta2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you read BIOS info from memory? 0xffff:0x0005
    By zahid in forum C Programming
    Replies: 5
    Last Post: 03-18-2003, 05:35 AM
  2. Read Array pro!!Plz help!!
    By Supra in forum C Programming
    Replies: 2
    Last Post: 03-04-2002, 03:49 PM
  3. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 10:52 AM
  4. Microsoft Visual C++ 6.0 ---> dude, just read this.
    By Unregistered in forum C++ Programming
    Replies: 11
    Last Post: 10-03-2001, 09:08 PM
  5. Help! Can't read decimal number
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 09-07-2001, 02:09 AM