beautypg.com

And16 (and, 16 bit), Dealloc (deallocate stack space and return), Dec16 (decrement, 16 bit) – Echelon Neuron User Manual

Page 173: Ee _dealloc (deallocate stack space and, Return)

background image

This example causes 13 bytes of zeroes to be pushed onto the data stack.

push #d’13 ; (13)

call _alloc ; (0(13))

_and16 (And, 16 Bit)

This function returns the bitwise AND of two 16-bit values.

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

Example:
This example performs the operation h’1234 AND h’4321.

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

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

call _and16 ; (h’20, h’02)

_dealloc (Deallocate Stack Space and Return)

This function removes N items from the stack and returns to the caller of the

caller of this function. Consider using the DEALLOC instruction for N less than

9. Also, consider using the _drop_n function to deallocate local variables and

returning to the calling function.

Stack Transformation: (value, a, b, c, … -- )
Location: Near
Registers Affected: None

Example:
This example drops 13 bytes from the stack and returns to the caller of

LocalFunction.

callr LocalFunction

; _dealloc returns here.

LocalFunction

push #d’13 ; (13, a, b, c, …, m)

call _dealloc ; ()

_dec16 (Decrement, 16 Bit)

This function decrements a 16-bit value by 1.

Neuron Assembly Language Reference

163