NY6 User Manual
Ver 1.3 2019/03/28
65
ADDL L
Function : Add immediate constant to ACC with
Carry and the result is save back to ACC.
Operation : { C, ACC
} ← ACC + L + C
Operand: L:4-bit immediate constant value, 0x0 to
0xF
Words : 1
Cycles : 1
Operative Flags: C
Flags Affected: C, Z
Example :
ADDL 0xA
Before Instruction
A=0x7, L=0xA, C=0
After Instruction
A=0x1, C=1, Z=0
SUBL L
Function : Subtract immediate constant from ACC
with Borrow, i.e. The (B) quantity
effectively implements a borrow capability
for multi-precision subtractions.
Operation : { C, A } = A - L - (~B)
Operand: L: 4-bit immediate constant value, 0x0 to
0xF
B: 1-bit borrow flag data, shared with carry flag,
B=~C.
Words : 1
Cycles : 1
Operative Flags: C
Flags Affected: C, Z
Example :
SUBL 0x2
Before Instruction
A=0xA, L=0x2, C=1
After Instruction
A=0x8, Z=0, C=1
ANDL L
Function : AND ACC with immediate constant, and
the result is save back to ACC, i.e.
Oper
ation :ACC ← ACC & L
Operand: L: 4-bit immediate constant value, 0x0 to
0xF
Words : 1
Cycles : 1
Operative Flags: None
Flags Affected: Z
Example :
ANDL 0xB
Before Instruction
A=0x3, L=0xB
After Instruction
A=0x3, Z=0
ORL L
Function : OR ACC with immediate constant, and the
result is save back to ACC, i.e.
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 :
ORL 0xB
Before Instruction
ACC=0x3, L=0xB
After Instruction
ACC=0xB, L=0xB, Z=0