The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: ninjarider on September 06, 2005, 02:20:15 PM

Title: how to change from 16-bit to 32-bit
Post by: ninjarider on September 06, 2005, 02:20:15 PM
using the masm how do i switch from 16-bit to 32-bit.
im looking at an example and the first line of code is [bits 16] and then later on it has [bits 32]
its also got [org 7c00h] as the second line of code.
Title: Re: how to change from 16-bit to 32-bit
Post by: P1 on September 06, 2005, 02:46:20 PM
ninjarider,

This is boot code and it will stay that way.

You might post the code and ask a more direct question to get what you want done.

Regards,  P1  :8)
Title: Re: how to change from 16-bit to 32-bit
Post by: ninjarider on September 06, 2005, 06:48:22 PM
i was just wondering if that syntax was allowed by masm. or if it was spacific to another language
Title: Re: how to change from 16-bit to 32-bit
Post by: Gustav on September 06, 2005, 07:06:57 PM

[Bits 32] is nasm syntax.
Title: Re: how to change from 16-bit to 32-bit
Post by: ninjarider on September 06, 2005, 07:27:46 PM
what would be the proper syntax for masm then.
Title: Re: how to change from 16-bit to 32-bit
Post by: Gustav on September 06, 2005, 09:56:11 PM

nasm:

[Bits 32]
[section _text]

masm:

_text segment use32
....
_text ends
Title: Re: how to change from 16-bit to 32-bit
Post by: ninjarider on September 07, 2005, 05:32:15 PM
how do i do it in masm.