R_shift16s (right shift signed, 16 bit), R_shift8 (right shift, 8 bit), R_shift8_ (right shift , 8 bit) – Echelon Neuron User Manual
Page 201

Stack Transformation: (a(2), b -- a(2)>>b)
Location: Near
Registers Affected: None
Example:
This example shifts 16 right 2.
pushs #d’2 ; (d’2)
pushd #d’16 ; (d’16, 0, d’2)
call _r_shift16 ; (d’4, 0)
_r_shift16s (Right Shift Signed, 16 Bit)
This function shifts a signed 16-bit integer right. b must be in the range 0..7.
Stack Transformation: (a(2), b -- a(2)>>b)
Location: Near
Registers Affected: None
Example:
This example shifts -16 right 2.
pushs #d’2 ; (d’2)
pushd #-d’16 ; (-d’16, -d’1, d’2)
call _r_shift16s ; (-d’4, -d’1)
_r_shift8 (Right Shift, 8 Bit)
This function shifts an unsigned integer right. b must be in the range 0..7.
Stack Transformation: (a, b -- a>>b)
Location: Near
Registers Affected: None
Example:
This example shifts 16 right 2.
pushs #d’2 ; (d’2)
push #d’16 ; (d’16, d’2)
call _r_shift8 ; (d’4)
_r_shift8_
This function shifts an unsigned integer right. n must be in the range 3..7.
Neuron Assembly Language Reference
191