does anyone know if it is possible to shift a register by a variable instead of an immediate value?
eg
sal dword [mem], eax
I can always make a loop to do it but it would be nice if i could do it in one line.
Regards Ric
sal reg,variable
-
- Posts: 200
- Joined: Tue 17 Apr 2018, 21:03
sal reg,variable
Kind Regards Ric.
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
Re: sal reg,variable
Yes. In IA-32:
Code: Select all
0FA31CF9 D3 25 F3 20 A3 0F sal dword [mem], cl
Code: Select all
000000000D791D17 D3 25 F4 03 00 00 sal dword [rel mem], cl
-
- Posts: 200
- Joined: Tue 17 Apr 2018, 21:03
Re: sal reg,variable
Thanks for the swift reply Richard
Kind Regards Ric.
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023