NY6 User Manual
Ver 1.3 2019/03/28
75
VOLX2
Function : Multiply the value of VOL register by 2.
Operation : VOL * 2
Operand :
None
Words :
1
Cycles :
1
Operative Flags: None
Flags Affected: None
Example :
MVLA 0xF
MVAT
VOL
VOLX2
Before Instruction
VOL = 0xF
After Instruction
VOL = 0x1E
RDN
Function : Read ROM data using the DPR (data
pointer) indexed by the CHNM register.
Operation :
ACC ← bit [3:0] of read data
ROD1 ← bit [7:4] of read data
ROD2 ← bit [11:8] of read data
Operand :
None
Words :
1
Cycles :
3
Operative Flags: None
Flags Affected: None
Example :
MVLA 0x1
CHNO
RDN
Before Instruction
data0 is 0x135
After Instruction
ACC=0x5, ROD1=0x3, ROD2=0x1, and
DPR[0x1]= data0
RDNI
Function : Read ROM data using the DPR (data
pointer) indexed by the CHNM register,
and increase the DPR after data reading.
Operation : ACC ← bit [3:0] of read data
ROD1
← bit [7:4] of read data
ROD2
← bit [11:8] of read data
Operand :
None
Words :
1
Cycles :
3
Operative Flags: None
Flags Affected: None
Example : MVLA
0x3
CHNO
RDNI
Before Instruction
data0 is 0x28B
After Instruction
ACC=0xB, ROD1=0x8, ROD2=0x2, and
DPR[0x3]= data0+1
SNP
Function: Skip the next instruction if the channel
(Head or Tail ) indexed by the CHNM did
not play.
Operation: Skip next if not play.
Operand: None
Words:
1
Cycles:
1, (2, 3, 4)
Operative Flags: None
Flags Affected: None
Example:
MVLA
0x1
CHNO
SNP
Inst1
Inst2
After Instruction
If CH1 play, `Inst1’ is executed. If CH1 not
play, `Inst1’ is discarded, and `Inst2’ is
executed.