Thread: release don`t appear

  1. #1
    Registered User
    Join Date
    Jul 2008

    Post release don`t appear

    hi i write a program to determine the type of IBM and bios level ,the compiler indicate 0 error but nothing appear in release ; this my prog
    void main(void)
     { union REGS r;
       struct SREGS s;
       unsigned char tip;
       r.h.ah = 0xC0;
       int86x(0x15, &r, &r, &s);
       tip = peekb(, r.x.bx + 2);
       printf("computer model:\n");
         { case 0xFF: printf("Origin IBM PC\n"); break;
           case 0xFE: printf("IBM PC XT or portativ PC\n"); break;
           case 0xFD: printf("IBM PC jr\n"); break;
           case 0xFC: printf("IBM PC AT (or XT model 286"
                              " or PS/2 model 50/60)\n"); break;
           case 0xFB: printf("IBM PC XT с 640K memory "
                             "mother bord\n"); break;
           case 0xFA: printf("PS/2 model 30\n"); break;
           case 0xF9: printf("Convertible PC\n"); break;
           case 0xF8: printf("PS/2 model 80\n"); break;
           default:   printf("Unknown type IBM PC\n");
       printf("\n Kod submodel %X\n", peekb(, r.x.bx + 3));
       printf("\n BIOS LEVEL %X\n", peekb(, r.x.bx + 4));

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Are you running this in real original DOS or in a Command Prompt on Windows - if the latter, it is highly likely that you don't get anything because you can't necessarily read the BIOS memory from a Windows command prompt.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. debug release conf problem
    By fighter92 in forum Game Programming
    Replies: 6
    Last Post: 03-20-2009, 04:39 PM
  2. assembly code for release code?
    By George2 in forum Windows Programming
    Replies: 4
    Last Post: 07-09-2008, 11:17 AM
  3. smart pointer release
    By George2 in forum C++ Programming
    Replies: 24
    Last Post: 02-13-2008, 08:51 AM
  4. AddRef and Release
    By George2 in forum C++ Programming
    Replies: 20
    Last Post: 02-07-2008, 01:19 AM
  5. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 11:08 AM