BINHA
BINHA, BINDHP, DBINHA, DBINHAP
BINHA instruction converts a BIN 16bit value to a Hexadecimal (ASCII code) and saves the result in Destination (assigned device address).
DBINHA and DBINHAP are Double Word (32bit).
| |
S | Source |
D | Starting device address of the Destination |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
BINHA(P) DBINHA(P) | S | o | o | o | o | o | o | o | o | - | o | o | o | o | 3 | o | - | - |
D | o | - | o | o | o | - | o | o | - | o | o | o | - |
BINHA(P)
The BINHA instruction converts 16bit BIN to a hexadecimal ASCII code and places the result in the Destination.
The range of 16bit BIN data is 0 ~ FFFFH.
The 0 is saved in D+2.
Example)
If the S value is 02A6H, its ASCII code is saved in D~D+1.
DBINHA(P)
The DBINHA instruction converts 32bit BIN to a Hexadecimal ASCII code and places the result in the Destination.
The range of 32bit BIN data is 0 ~ FFFFFFFFH.
Example)
If the S value is 03AC625EH, its Hexadecimal ASCII code is saved in D~D+3.
Example)
If X01 is ON, BINHAP converts a BIN 16bit value of D0 to a Hexadecimal (ASCII code) and save the result in Y00.