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

Behavior Example

Run condition Before Command entered Expected result
Left condition ON D0=1234 D2H D0 D1 D1=0x1234

Inputs and results for Conversion Box Functions

Cautions

Box Functions in the Same Category