5-3 Precautions of Using Application Instruction
The execution result is related to the Application Instruction and that will cause some change to the corresponding
flags:
M9020 : Addition / Subtraction Zero Flag
M9021 : Borrow Flag
M9029 : Instruction Execution Completed Flag
When processing an Application Instruction, the status (ON/OFF) of corresponding flags will be changed according
to the result; but when the Application Instruction is not executed, the status of corresponding flags will be kept.
Since there are so many instructions in the program will change and cover the status of same flags, to plan a program
must notice about this.
The list of relative Application Instructions for processing floating point values.
Flags
Floating Point Instructions
M9022 : Carry Flag
M9023 : Multiplication / Division Zero Flag
M9025 : Division Overow Flag
DEMOV(FNC112)
DEBIN(FNC119)
DEDIV(FNC123)
DESQR(FNC127)
DCOS(FNC131)
DATAN (FNC135) P
FLT(FNC49)
DESTR FNC116( )
DEADD(FNC120)
( )DEXP FNC124
DENEG FNC128( )
DTAN(FNC132)
D FNC136RAD( )
DECMP(FNC110)
DEVAL FNC117( )
DESUB(FNC121)
DLOGE FNC125( )
INT(FNC129)
DAS N FNC133( )
I
DDEG FNC137( )
DEZCP(FNC111)
DEBCD(FNC118)
DEMUL(FNC122)
DLOG10(FNC126)
DSIN(FNC130)
DACOS(FNC134)
124
Every oating point number will occupy two registers.
The format of oating point number store in registers, please refer to the section 2-13 “Numerical System”.
If the source operand of a oating point operation instruction is a constant number K or H, the instruction will
automatically transform this constant number to a BIN oating point number during the processing.
When a oating point function is used, please pay attention to the format of its operands.