Author Topic: mov byte ptr [rax] Bug  (Read 841 times)

LiaoMi

  • Member
  • ****
  • Posts: 697
mov byte ptr [rax] Bug
« 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
Code: [Select]
mainCRTStartup proc
    mov byte ptr [rax], 0e8h
   
ret
align 4
mainCRTStartup endp
Bin
Code: [Select]
MOV     DWORD PTR DS:[RAX], E8
RET     
NOP


in another version it will be like this

Code
Code: [Select]
mov BYTE PTR [rax],0x2aBin
Code: [Select]
MOV     BYTE PTR DS:[RAX], 2A
I think both entries should be correct?
Code: [Select]
    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

  • Member
  • ****
  • Posts: 806
    • Uasm
Re: mov byte ptr [rax] Bug
« Reply #1 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..