beautypg.com

L_shift8s (left shift signed, 8 bit), L_shift8_ (left shift by , 8 bit), Ldp0_fetchl (load p0 from fetched location) – Echelon Neuron User Manual

Page 183

background image

Registers Affected: None

Example:
This example shifts 16 left 2.

pushs #d’2 ; (d’2)

push #d’16 ; (d’16, d’2)

call _l_shift8 ; (d’64)

_l_shift8s (Left Shift Signed, 8 Bit)

This function shifts a signed integer left. b must be in the range 0..7.

Stack Transformation: (a, b -- a<Location: Near
Registers Affected: None

Example:
This example shifts 16 left 2.

pushs #d’2 ; (d’2)

push #d’16 ; (d’16, d’2)

call _l_shift8s ; (d’64)

_l_shift8_ (Left Shift by , 8 Bit)

This function shifts an integer left. n must be in the range 3..7.

Stack Transformation: (a -- a<Location: Near
Registers Affected: None

Example:
This example shifts 16 left 3.

push #d’16 ; (d’16)

call _l_shift8_3 ; (d’128)

_ldP0_fetchl (Load P0 from Fetched Location)

This function takes a 16-bit address, loads two bytes from that location and

returns them.

Stack Transformation: (address(2) -- [address(2)+1], [address(2)])

Neuron Assembly Language Reference

173