7 Applied Instructions
7.12 Floating Point
466
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Program example
1) This is a program for converting the character string stored after R0 when the X000 is turned ON, into
binary floating decimal point, and storing in D0, D1.
b15 b8 b7 b0
R1
To be ignored.
D1
-1.23452
20H(space)
31H(1)
32H(2)
34H(4)
2DH(-)
30H(0)
2EH(.)
33H(3)
32H(2)
00H
35H(5)
31H(1)
To be cut off.
2 3 410 15 2
R0
R3
R2
R5
R4
D0
X000
DEVALP
EN ENO
d
s
*1. VAR_01 is global label, and R0 is defined.
*2. VAR_02 is global label, and D0 is defined.
VAR_01
*1
VAR_02
*2
[Structured ladder] [ST]
DEVAR(X000,VAR_01,VAR_02);