![NyQuest Innovation Labs NY6 Series Скачать руководство пользователя страница 66](http://html1.mh-extra.com/html/nyquest-innovation-labs/ny6-series/ny6-series_user-manuel_1722361066.webp)
NY6 User Manual
Ver 1.3 2019/03/28
66
INTCB t2, b
Function : Clear bit [b] of SFR(t2) to 0
Operation :0 ← t2[b]
Operand : t2: 2-bit address of SFR register to clear
bit, 0x00 to 0x03
b: 2-bit bit location to clear to 0
Words : 1
Cycles : 1
Operative Flags: None
Flags Affected: None
Example :
INTCB t2, 0x2
Before Instruction
[t2]=0xF
After Instruction
[t2]=0xB
INTSB t, b
Function : Set bit [b] of (t2) to 1
Operation :1 ← t2[b]
Operand : t2: 2-bit address of SFR register to clear
bit, 0x00 to 0x03
b: 2-bit bit location to set to 1
Words : 1
Cycles : 1
Operative Flags: None
Flags Affected: None
Example :INTSB t2, 0x2
Before Instruction
[t2]=0x0
After Instruction
[t2]=0x4
XORL L
Function : Exclusive OR ACC with immediate
constant, and the result is save back to
ACC.
Operation :ACC ← ACC
⊕
L
Operand: L: 4-bit immediate constant value, 0x0 to
0xF
Words :
1
Cycles :
1
Operative Flags: None
Flags Affected: Z
Example :
XORL 0xB
Before Instruction
AC=0x3, L=0xB
After Instruction
AC=0x8, L=0xB, Z=0
INCA
Function: Add 1 to ACC, and save the result back to
ACC.
Operation: { C, ACC }
← ACC + 1
Operand: None
Words: 1
Cycles:
1
Operative Flags: C
Flags Affected: C, Z
Example:
INCA
Before Instruction
ACC=0x0
After Instruction
ACC=0x1, C=0, Z=0