flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Any need of "sar", "bsf" or "bsr&qu |
Author |
|
MCD 29 Nov 2004, 19:08
I have also thought about implementing "rol" and "ror", but the problem with them is, they are actually tertiary operators (take 3 operands):
The value to rotate, how much to rotate and rotate in which cyclic size (most commonly byte, word or dword wize). The problem with this, is that Fasm has no tertiary operators in its syntax, and I've no idea how doing this? Privalov? So, I got to sacrify 1 operand, say the cyclic rotate size. But then, you must specify the rotate size somewhere else, for example like this: rolb/rorb rolw/rorw rold/rord rolq/rorq But this would require to implement 8 operators into Fasm and "rolb" does'nt really look good, and you won't be able to rotate, for example, eax by 5 in a cyclic size of 11bits and 11bits can't by done otherwize with the other power of 2 rotatings with reasonable afford. Anyone an idea? |
|||
29 Nov 2004, 19:08 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.