News:

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

ml64: Hexadecimal constants (?!)

Started by EricB, May 08, 2011, 10:34:15 PM

Previous topic - Next topic

EricB

Started using ml64 recently to port some extended precision arithmetic code to 64 bits.

Able to integrate things into a visual studio project.

However I've encountered a really annoying problem - how do I get ml64 to recognize hexadecimal immediate values??

For example:
mov    rax,fffffffffffffffeh
(attempting to move 64 bit value into rax)
generates the error:
error A2006:undefined symbol : fffffffffffffffeh

Decimal constants work fine. I thought appending an 'h' to a hex constant would work? - help

jj2007


qWord

an short addition: for most compilers and assemblers numeric values must begin with an digit (0-9)
FPU in a trice: SmplMath
It's that simple!

EricB

thank you, apparently need a zero in front of the immediate value.

dedndave

.......... in order to differentiate them from labels
labels must not begin with a (0-9) numeric digit
this includes names for data, code, constants

when you say "fffe", the assembler is looking for a label

hutch--

Eric,

Put a "0" at the front of the hex notation, this is normal in MASM where a number must have a leading digit.


    mov rax, 0FFFFFFFFh
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php