
NY6 User Manual
Ver 1.3 2019/03/28
59
Chapter 4. Instruction Set
4.1 Instruction Classified Table
Item
Inst.
Op1 Op2
Operation
Exec.
Cycle
Inst.
Length
Oper.
Flag
Flag
Affected
Arithmetic Instructions
1
ADDM
6m
{C,A} = A + M + C
1
1
C
C, Z
2
SUBM
6m
{C,A} = A – M - (~B)
1
1
C
C, Z
3
INCM
6m
{C,M} = M + 1
1
1
C, Z
4
DECM
6m
{C,M} = M – 1
1
1
C, Z
5
ANDM
6m
A = A & M
1
1
Z
6
ORM
6m
A = A | M
1
1
Z
7
MVAM
6m
M = A
1
1
8
MVMA
6m
A = M
1
1
Z
9
XORM
6m
A = A
⊕
M
1
1
Z
10 MVAT
5t
T = A
1
1
11 MVTA
5t
A = T
1
1
Z
12 ADDL
4L
{C,A} = L + A + C
1
1
C
C, Z
13 SUBL
4L
{C,A} = A – L - (~B)
1
1
C
C, Z
14 ANDL
4L
A = A & L
1
1
Z
15 ORL
4L
A = A | L
1
1
Z
16 XORL
4L
A = A
⊕
L
1
1
Z
17 MVLA
4L
A = L
1
1
18 INTCB
2t
2b
Clear T[b]
1
1
19 INTSB
2t
2b
Set T[b]
1
1
20 INCA
{C,A} = A + 1
1
1
C, Z
21 DECA
{C,A} = A – 1
1
1
C, Z
22 RRC
Right Rotate A with C
1
1
C
C, Z
23 RLC
Left Rotate A with C
1
1
C
C, Z
24 RRA
Right Rotate A
1
1
25 RLA
Left Rotate A
1
1
26 SETC
Set Carry flag
1
1
C
27 CLRC
Clear Carry flag
1
1
C
Conditional Instructions
28 SAGT
4L
Skip when A > L
1-4
1
29 SALT
4L
Skip when A < L
1-4
1
30 SAEL
4L
Skip if A = L
1-4
1
31 SCEZ
Skip if C = 0
1-4
1
32 SZEZ
Skip if Z = 0
1-4
1
33 SCNZ
Skip if C != 0
1-4
1
34 SZNZ
Skip if Z != 0
1-4
1
35 SBZ
2b
Skip when A[b] = 0
1-4
1
Audio Instructions
36 SNP
Skip when No Play of CHNM
1-4
1
37 SP
Skip when Play of CHNM
1-4
1
38 SANP
Skip when ALL 6 channels Play = 0
1-4
1