Knowledge Base

<LCD> <- X; X=Y; Y=Z; Z=T

Displays the contents of X as a signed decimal number in a variable width field. The resulting display can be 1, 2, 3 or 4 characters long.

Examples:

1

12

-123

NOTE: This instruction was not implemented in 32-bit controllers until 28 January 2020
Note: This instruction modifies UV. Pops X

Because SPLat is not intended for doing arithmetic manipulations in the register stack, you would seldom interpret values in X as negative (hence you are unlikely to ever use this instruction). If you are doing arithmetic operations you are better off using the floating point processor.

If you do decide to do some signed integer counting, you will need to understand the principles of 2’s complement binary number notation. In 2’s complement the capacity of X is -128 to +127.

Dialect exclusions: Not available in dialects before 9. Also, not available on SPLat controllers that do not have onboard LCD support (please check the documentation for your specific board and firmware version).