AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
The shift types are :
LSL     Logical Shift Left (*2)
LSR     Logical Shift Right (/2)
ASR     Arithmetic Shift Right (/2)
ROR     ROtate Right
RRX     Rotate Right eXtended

In ASR, the arithmetic sign of the number is preserved (+ve/-ve). 

In ROR, the bit lost is also copied back to bit 31. RRX is similar, but this time the carry flag acts as 'bit 32'.

In all cases, the bit lost from the end is shifted into the carry flag (if the update status flag 'S' is set). 

[sh-index] Back to list of manuals