beautypg.com

Xor16 (exclusive or, 16 bit) – Echelon Neuron User Manual

Page 204

background image

pushd #d’50 ; (d’50, 0, d’44, 1)

call _sub16s ; (d’250, 0)

_xor16 (Exclusive OR, 16 Bit)

This function returns the bitwise exclusive OR (XOR) of two 16-bit values.

Stack Transformation: (a(2), b(2) -- a(2) ^ b(2))
Location: Near
Registers Affected: None

Example:
This example determines h’1234 XOR h’4321.

pushd #h’1234 ; (h’34, h’12)

pushd #h’4321 ; (h’21, h’43, h’34, h’12)

call _xor16 ; (h’15, h’51)







194

System-Provided Functions