en-us_products:mpino_studio2:box_functions:conversion:d2h
Table of Contents
D2H Box Function
BCD Encode (Decimal to Hex)
Category: Conversion Box Functions
Behavior
Converts a decimal integer from 0 to 9999 into four-digit BCD and stores it in a WORD.
Syntax and Arguments
Syntax: D2H D0 D1
- 1st = source: WORD address holding a decimal integer from 0 to 9999
- 2nd = destination: WORD address that stores the BCD result
Behavior Example
Cautions
- Use the WORD data formats required by the command for the source and destination.
- Use an input value from 0 to 9999.
Box Functions in the Same Category
- INV View details — Invert
- NEG View details — Negate
- H2D View details — BCD Decode (Hex to Decimal)
en-us_products/mpino_studio2/box_functions/conversion/d2h.txt · Last modified: by 127.0.0.1
