asr

Sizes

byte, word, long

Default Size

word

Affected Flags

X
N
Z
V
C

Operands

Op 1
Dn/Im
Op 2
Dn

Shifts the bits of the destination operand to the "Right". Two forms: (1) as<d> Dx/Im, Dn shifts Dn by the count in Dx or immediate (1–8), any size. New bits are filled with the sign bit. Defaults to word. Note: ASL sets the overflow flag if the MSB changes during the shift, while ASR always clears it. (2) as<d>.w (An) shifts a memory word by 1; .w is the only size accepted and may be omitted.

Loading...