Previous Topic

Next Topic

Book Contents

Book Index

OBLCD_SDecDispMVW mm

Displays the contents of RAM location m 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

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.

Note: This instruction modifies UV and consumes one level of the register stack, i.e. loses T

Note: This instruction does not jndex its argument, nor does it respond to an IasJ: precode.

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).

Previous Topic

Next Topic