
NY6 User Manual
Ver 1.3 2019/03/28
81
RDPC
Function : Read program counter (PC) to RPT
Operation :
RPT[21:0] ← PC
Operand :
None
Words :
1
Cycles :
1
Operative Flags: None
Flags Affected: None
Example :
RBPC
Before Instruction
RPT= 0x?????
PC = 0x012035
After Instruction
RPT = 0x012035
LDSPRH
Function : Load MSB 12-bit address for SPI flash.
The address should be loaded in RPT
firstly.
Operation : SPR [23:12]
← RPT[11:0]
Operand :
None
Words :
1
Cycles :
1
Operative Flags: None
Flags Affected: None
Example :
MVLA 0x2
MVAM RPT0
MVLA
0x3
MVAM RPT1
MVLA
0x4
MVAM RPT2
LDSPRH
Before Instruction
SPR = 0x000000
After Instruction
SPR = 0x432000
RDSPRH
Function : Read MSB 12-bit address for SPI flash.
The address should be loaded in RPT
firstly.
Operation :
RPT[11:0] ←
SPR [23:12]
Operand :
None
Words :
1
Cycles :
1
Operative Flags: None
Flags Affected: None
Example :
RDSPRH
Before Instruction
RPT = 0x000
SPR = 0x432765
After Instruction
RPT = 0x432
LDSPRL
Function : Load LSB 12-bit address for SPI flash. The
address should be loaded in RPT firstly.
Operation : SPR [11:0]
← RPT[11:0]
Operand :
None
Words :
1
Cycles :
1
Operative Flags: None
Flags Affected: None
Example :
MVLA 0x5
MVAM RPT0
MVLA
0x6
MVAM RPT1
MVLA
0x7
MVAM RPT2
LDSPRH
Before Instruction
SPR = 0x000000
After Instruction
SPR = 0x000765