[Instruction] Contents
[Instruction] Contents [Instruction] Contents
Advanced Function InstructionFUN 36 D PXNREXCLUSIVE NORFUN 36 D PXNRSa : Data a for XNR operationSb : Data b for XNR operationD : Register storing XNR resultsSa, Sb, D may combine with V, Z, P0~P9 to serveindirect address applicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D409516/32-bit± numberP0~P9Sa ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Sb ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○V、Z●When operation control "EN" = 1 or "EN↑" ( P instruction) changes from 0 to 1, will perform the logicalXNR (inclusive or) operation of data Sa and Sb. The operation of this function is to compare thecorresponding bits of Sa and Sb (B0~B15 or B1~B31), and if the bit has the same value, then set thecorresponding bit within D as 1. If not then set it to 0.● After the operation, if the bits in D are all 0, then set the 0 flag "D=0" to 1.X036P.XNREN Sa :Sb :RR01D=0• The instruction at left makes a logical XNR operationof the R0 and R1 registers, and the results are storedin the R2 register.D :R 2Sa R0 1 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1Sb R1 1 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 X0=D R2 1 0 1 0 1 0 1 0 0 0 1 1 0 1 0 07-13
Advanced Function InstructionFUN 37 D PZNCMPZONE COMPAREFUN 37 D PZNCMPS : Register for zone comparisonSU : The upper limit valueSL : The lower limit valueS, SU, SL may combine with V, Z,P0~P9 to serve indirect addressapplicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D409516/32-bit+/-numberP0~P9S ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○SU ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○SL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○V、Z• When operation control "EN" = 1 or "EN↑" ( P instruction) changes from 0 to 1, compares S with upperlimit SU and lower limit SL. If S is between the upper limit and the lower limit (S L≦S≦S U), then set theinside zone flag "INZ" to 1. If the value of S is greater than the upper limit S U, then set the higher thanupper limit flag "S>U" to 1. If the value of S is smaller then the lower limit S L, then set the lower than lowerlimit flag "S
- Page 70 and 71: Basic Function InstructionT TIMER T
- Page 72 and 73: Basic Function InstructionT TIMER T
- Page 74 and 75: Basic Function InstructionCCOUNTER(
- Page 76 and 77: Basic Function InstructionSET D PSy
- Page 78 and 79: Basic Function InstructionRST D PSy
- Page 80 and 81: Basic Function InstructionFUN 0MCSy
- Page 82 and 83: Basic Function InstructionFUN 1MCES
- Page 84 and 85: Basic Function InstructionFUN 2SKPS
- Page 86 and 87: Basic Function InstructionFUN 4DIFU
- Page 88 and 89: Basic Function InstructionFUN 6 D P
- Page 90 and 91: Basic Function InstructionFUN 7 DUD
- Page 92 and 93: Basic Function InstructionFUN 9 D P
- Page 94 and 95: Basic Function InstructionFUN 11 D
- Page 96 and 97: Basic Function InstructionFUN 13 D
- Page 98 and 99: Basic Function InstructionFUN 14 D
- Page 100 and 101: Basic Function InstructionFUN 15 D
- Page 102 and 103: Basic Function InstructionFUN 17 D
- Page 104 and 105: Basic Function InstructionFUN 19 D
- Page 106 and 107: Basic Function InstructionFUN 21 D
- Page 108 and 109: Advanced Function InstructionFUN22
- Page 110 and 111: Advanced Function InstructionFUN 24
- Page 112 and 113: Advanced Function InstructionFUN 26
- Page 114 and 115: Advanced Function InstructionFUN 28
- Page 116 and 117: Advanced Function InstructionFUN 30
- Page 118 and 119: Advanced Function InstructionFUN32A
- Page 122 and 123: Advanced Function InstructionFUN 40
- Page 124 and 125: Advanced Function InstructionFUN 42
- Page 126 and 127: Advanced Function InstructionFUN 44
- Page 128 and 129: Advanced Function InstructionFUN 46
- Page 130 and 131: Advanced Function InstructionFUN 48
- Page 132 and 133: Advanced Function InstructionFUN50
- Page 134 and 135: Advanced Function InstructionFUN 52
- Page 136 and 137: Advanced Function InstructionFUN 54
- Page 138 and 139: Advanced Function InstructionFUN55
- Page 140 and 141: Advanced Function InstructionFUN56
- Page 142 and 143: Advanced Function InstructionFUN 58
- Page 144 and 145: Advanced Function InstructionFUN 59
- Page 146 and 147: Advanced Function InstructionFUN 59
- Page 148 and 149: Advanced Function InstructionFUN 61
- Page 150 and 151: Advanced Function InstructionFUN 63
- Page 152 and 153: Advanced Function InstructionFUN 64
- Page 154 and 155: Advanced Function InstructionEND PR
- Page 156 and 157: Advanced Function InstructionFUN 66
- Page 158 and 159: Advanced Function InstructionFUN 68
- Page 160 and 161: Advanced Function InstructionFUN 70
- Page 162 and 163: Advanced Function InstructionFUN 74
- Page 164 and 165: Advanced Function InstructionFUN 76
- Page 166 and 167: Advanced Function InstructionFUN 78
- Page 168 and 169: Advanced Function InstructionFUN 79
Advanced Function <strong>Instruction</strong>FUN 36 D PXNREXCLUSIVE NORFUN 36 D PXNRSa : Data a for XNR operationSb : Data b for XNR operationD : Register storing XNR resultsSa, Sb, D may combine with V, Z, P0~P9 to serveindirect address applicationOperandRangeWX WY WM WS TMR CTR HR IR OR SR ROR DR K XRWX0∣WX240WY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3840∣R3903R3904∣R3967R3968∣R4167R5000∣R8071D0∣D409516/32-bit± numberP0~P9Sa ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○Sb ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○ ○V、Z●When operation control "EN" = 1 or "EN↑" ( P instruction) changes from 0 to 1, will perform the logicalXNR (inclusive or) operation of data Sa and Sb. The operation of this function is to compare thecorresponding bits of Sa and Sb (B0~B15 or B1~B31), and if the bit has the same value, then set thecorresponding bit within D as 1. If not then set it to 0.● After the operation, if the bits in D are all 0, then set the 0 flag "D=0" to 1.X036P.XNREN Sa :Sb :RR01D=0• The instruction at left makes a logical XNR operationof the R0 and R1 registers, and the results are storedin the R2 register.D :R 2Sa R0 1 0 1 1 1 0 1 1 0 1 1 0 1 1 0 1Sb R1 1 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 X0=D R2 1 0 1 0 1 0 1 0 0 0 1 1 0 1 0 07-13