4
3-16. [GROUP] , [GROUPE] ............................................................................................................. 75
3-17. PROGRAMMING NOTES ............................................................................................................... 76
4 APPLIED INSTRUCTIONS ..................................................................................................... 78
4-1.APPLIED INSTRUCTIONS LIST ..................................................................................................... 78
4-2.READING METHOD OF APPLIED INSTRUCTIONS ......................................................................... 82
4-3.PROGRAM FLOW INSTRUCTIONS ................................................................................................ 84
4-3-1
.
Condition Jump [CJ] ......................................................................................................... 84
4-3-2
.
Call subroutine [CALL] and Subroutine return [SRET] .................................................... 85
4-3-3. Flow [SET], [ST], [STL], [STLE] ....................................................................................... 87
4-3-4
.
[FOR] and [NEXT] .......................................................................................................... 92
4-3-5
.
[FEND] and [END].......................................................................................................... 94
4-4. DATA COMPARE FUNCTION ........................................................................................................ 95
4-4-1
.
LD Compare [LD] ............................................................................................................. 96
4-4-2
.
Serial Compare [AND] ...................................................................................................... 97
4-4-3
.
Parallel Compare [OR] ..................................................................................................... 98
4-5.DATA MOVE INSTRUCTIONS ..................................................................................................... 101
4-5-1
.
Data Compare [CMP] ..................................................................................................... 101
4-5-2
.
Data zone compare [ZCP] ............................................................................................... 102
4-5-3. MOV [MOV] ...................................................................................................................... 103
4-5-4. Data block Move [BMOV] ................................................................................................ 105
4-5-5
.
Data block Move [PMOV] .............................................................................................. 106
4-5-6
.
Fill Move [FMOV] .......................................................................................................... 107
4-5-7
.
Floating move [EMOV] ................................................................................................... 109
4-5-8
.
FlashROM Write [FWRT] ............................................................................................... 110
4-5-9
.
Zone set [MSET] .............................................................................................................. 111
4-5-10
.
Zone reset [ZRST].......................................................................................................... 112
4-5-11
.
Swap the high and low byte [SWAP].............................................................................. 113
4-5-12
.
Exchange [XCH] ........................................................................................................... 114
4-6.DATA OPERATION INSTRUCTIONS ............................................................................................. 116
4-6-1 Addition [ADD] ................................................................................................................. 116
4-6-2
.
Subtraction [SUB] ........................................................................................................... 118
4-6-3
.
Multiplication [MUL] ...................................................................................................... 120
4-6-4
.
Division [DIV] ................................................................................................................. 121
4-6-5
.
Increment [INC] & Decrement [DEC] ............................................................................ 123
4-6-6
.
Mean [MEAN] ................................................................................................................. 124
4-6-7
.
Logic AND [WAND], Logic OR[WOR], Logic Exclusive OR [WXOR] .......................... 125
4-6-8
.
Logic converse [CML] ..................................................................................................... 127
4-6-9
.
Negative [NEG] ............................................................................................................... 128
4-7.SHIFT INSTRUCTIONS ............................................................................................................... 129
4-7-1
.
Arithmetic shift left [SHL], Arithmetic shift right [SHR] ................................................. 129
4-7-2
.
Logic shift left [LSL], Logic shift right [LSR] ................................................................. 131
4-7-3
.
Rotation shift left [ROL], Rotation shift right [ROR] ...................................................... 132
4-7-4
.
Bit shift left [SFTL] ......................................................................................................... 134
4-7-5
.
Bit shift right [SFTR] ....................................................................................................... 135