Thread: how to do 32bit instruction op in 16bit build environment

  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    2

    Question how to do 32bit instruction op in 16bit build environment

    hello everyone...

    i met a trouble that when embeded into attached instruction:
    Code:
    _asm{
            ...
            mov eax, xxh
            ...
    }
    when i build this utility, it will report an error, not allow use 32bit instruction,
    so could you help me on how to handle this error?

    ==============
    build environment: DOS/BC31

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Upgrade your tool chain to 32 bit.
    Rewrite the code you have in 16 bit.

    You can mix 16 and 32 bit in DOS, but only with a hell of a lot of excess baggage.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    2
    Quote Originally Posted by Salem View Post
    Upgrade your tool chain to 32 bit.
    Rewrite the code you have in 16 bit.

    You can mix 16 and 32 bit in DOS, but only with a hell of a lot of excess baggage.
    ========================
    Thanks for your information.
    Change the BC31 setting, after select "Compile via assembler", the program can compile pass now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PlaySound
    By cangel in forum C++ Programming
    Replies: 16
    Last Post: 10-08-2009, 05:29 PM
  2. Simulator
    By MasterAchilles in forum C Programming
    Replies: 10
    Last Post: 11-30-2008, 10:31 PM
  3. NAQ: Everything you never wanted to know about CPP
    By evildave in forum C Programming
    Replies: 21
    Last Post: 12-12-2005, 10:56 AM
  4. Boom, Headoshot!!
    By mrafcho001 in forum A Brief History of Cprogramming.com
    Replies: 50
    Last Post: 07-21-2005, 08:28 PM
  5. 32bit 16bit compilers
    By Benzakhar in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-02-2004, 04:43 PM