The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: LiaoMi on May 04, 2019, 12:48:47 AM

Title: mov byte ptr [rax] Bug
Post by: LiaoMi on May 04, 2019, 12:48:47 AM
Hello,

my friend found a bug in the latest version of the UASM, byte turns into a double word .. In version 2.47.1 there is no bug...

Code
mainCRTStartup proc
    mov byte ptr [rax], 0e8h
   
ret
align 4
mainCRTStartup endp

Bin
MOV     DWORD PTR DS:[RAX], E8
RET     
NOP


in another version it will be like this

Code
mov BYTE PTR [rax],0x2a
Bin
MOV     BYTE PTR DS:[RAX], 2A

I think both entries should be correct?
    mov byte ptr [rax], 0e8h
    mov BYTE PTR [rax],0x2a


Is it possible to publish a quick bugfix to compile a new version?

Thank you!  ::)
Title: Re: mov byte ptr [rax] Bug
Post by: johnsa on May 07, 2019, 12:37:35 AM
Hi, good  catch.

I will apply a fix and update 2.48.1

Surprised this one slipped through as there are about 20 different sets of regression tests for move alone..