News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

mov byte ptr [rax] Bug

Started by LiaoMi, May 04, 2019, 12:48:47 AM

Previous topic - Next topic

LiaoMi

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!  ::)

johnsa

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..