Author Topic: shrx encoding  (Read 352 times)

Biterider

  • Member
  • ****
  • Posts: 896
  • ObjAsm Developer
    • ObjAsm
shrx encoding
« on: May 02, 2022, 07:04:35 AM »
Hi
By accident I wrote shrx rdx,3 and uasm (V 2.55) compiled it without errors.
When debugging I saw that it was decompiled as shrx rdx,rax,r15.
I suspect something is wrong with this instruction.  :rolleyes:

Biterider

Gunther

  • Member
  • *****
  • Posts: 4048
  • Forgive your enemies, but never forget their names
Re: shrx encoding
« Reply #1 on: May 02, 2022, 07:23:09 AM »
Biterider,

When debugging I saw that it was decompiled as shrx rdx,rax,r15.
I suspect something is wrong with this instruction.  :rolleyes:

it seems the same to me. Does it have consequences for your ObjAsm project?
Get your facts first, and then you can distort them.

Biterider

  • Member
  • ****
  • Posts: 896
  • ObjAsm Developer
    • ObjAsm
Re: shrx encoding
« Reply #2 on: May 02, 2022, 03:20:34 PM »
Hi Gunther
Does it have consequences for your ObjAsm project?
Not really, I was experimenting with a new algorithm where I wanted to use this instruction to avoid changing flags.

Biterider

Gunther

  • Member
  • *****
  • Posts: 4048
  • Forgive your enemies, but never forget their names
Re: shrx encoding
« Reply #3 on: May 03, 2022, 02:54:08 AM »
Biterider,

Not really, I was experimenting with a new algorithm where I wanted to use this instruction to avoid changing flags.

sounds ok. Good luck. :thumbsup:
Get your facts first, and then you can distort them.

johnsa

  • Member
  • ****
  • Posts: 868
    • Uasm
Re: shrx encoding
« Reply #4 on: May 04, 2022, 08:44:00 PM »
Added to 2.56 github issue log. I will investigate :)