
1 TPEditor Operation
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
1-77
Figure 1-141
Step 2. Click Macro Dialog icon (Figure 1-141) to open Macro Instruction tab (Figure 1-142). In Macro
Instruction tab, the users can select the macro instruction and the type of the macro instruction from
Command(C) pull-down menu, such as Arith (Arithmetic) Operation, Logic operation, Data Moving
operation, Compare operation, Bit and other operation).
Type Application Instruction
Arith (Arithmetic) Operation ADD, SUB, MUL, DIV, MOD
Logic Operation AND, OR, XOR, NOT, SHR, SHL
Data Moving Operation MOV, BMOV
Compare Operation
IF=, IF!=, IF>, IF>=, IF<, IF<=,
ELSEIF=, ELSEIF!=, ELSEIF>, ELSEIF>=, ELSEIF<, ELSEIF<=,
IF AND=, IF AND != , IF=ON, IF=OFF,
ELSEIF AND=, ELSEIF AND != , ELSEIF=ON, ELSEIF=OFF,
ELSE, ENDIF
Bit Operation SETB, CLRB
Other NOP, END
Instruction Var1(A) Var2(B) Var3(C) Equation
ADD @V,Kn @V,Kn @V C=A+B
SUB @V,Kn @V,Kn @V C=A-B
MUL @V,Kn @V,Kn @V C=A*B
DIV @V,Kn @V,Kn @V C=A/B
Arith
(Arithmetic)
Operation
MOD @V,Kn @V,Kn @V C=A%B
AND @V,Kn @V,Kn @V C=A&B
Logic
Operation
OR @V,Kn @V,Kn @V C=A|B
Kommentare zu diesen Handbüchern