3. Instructions
In this example, N words of binary data is converted to BCD data.
If N = 3, the three words of binary starting from D10 will be converted to binary data one word at a time
when CIO 0.00 turns ON. The resulting BCD data will be stored starting from D100.
0.00
0.00
378
MOVR
D10
D10
IR0
D11
D12
MOVR
D100
BIN
IR1
BCD
FOR
&3
D100
D101
BCD
D102
,IR0+
,IR1+
NEXT
(Hexadecimal #0064)
Decimal &100
Decimal &200
(Hexadecimal #00C8)
Decimal &300
(Hexadecimal #012C)
BCD #0100
BCD #0200
BCD #0300
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers