News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Why is constant data declared in the .code section?

Started by Sergiu FUNIERU, March 09, 2010, 04:10:52 AM

Previous topic - Next topic

jj2007

Try
or eax, -1
and eax, 1

A bit longer but less "maybe" ;-)
Or, for positive values only please:
cdq
div eax

3 bytes only, and you get a free GPF in case eax was negative.

qWord

FPU in a trice: SmplMath
It's that simple!