The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: mineiro on August 01, 2016, 10:26:06 PM

Title: mov r64,imm64
Post by: mineiro on August 01, 2016, 10:26:06 PM
How can I write this?
mov rax,0123456789abcdefh

I'm receiving "Error A2235: Constant value too large: 123456789ABCDEFh"

Using other assembler I'm getting this:
   0:   48 b8 ef cd ab 89 67    movabs rax,0x123456789abcdef
   7:   45 23 01

Thanks
Title: Re: mov r64,imm64
Post by: habran on August 01, 2016, 11:23:33 PM
  mov rax,123456789ABCDEFh
00007FF6729210F1 48 B8 EF CD AB 89 67 45 23 01 mov         rax,123456789ABCDEFh
This is what I get with HJWasm
Title: Re: mov r64,imm64
Post by: mineiro on August 02, 2016, 02:43:01 AM
Thanks for answering sir habran
well, I'm getting this result using HJWasm. Maybe my version is older or because is that I'm trying to generate elf file, follows the code.

;hjwasm -elf64 -Fo=test.o test.hjwasm
.x64
.code
public _start
_start:
mov rax,0123456789abcdefh
end


HJWasm v2.14, Jun  9 2016, Masm-compatible assembler.
test.hjwasm(6) : Error A2235: Constant value too large: 123456789ABCDEFh
test.hjwasm: 7 lines, 1 passes, 329 ms, 0 warnings, 1 errors