★ HARDWARE Manual ★ SMPC User's ManualCommand code 10H SMPC interrupt occurrence IREG 0 ~ 2 OREG 0-31 Execution time max = 320msec min = xxx
| IREG0 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 20100001H | SMPC status acquisition switch ( 00H or 01H ) Indefinite initial value / Write Only | |||||||
| IREG0 setting value | explanation |
|---|---|
| 00H | Date and time, cartridge code, area code, terminal status, SMEM, Does not return each data of the reset button |
| 01H | Date and time, cartridge code, area code, terminal status, SMEM, Returns each data of the reset button |
| IREG1 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 20100003H | P2MD1 | P2MD0 | P1MD1 | P1MD0 | PEN | 0 | OPE | 0 |
| Indefinite W | Indefinite W | Indefinite W | Indefinite W | Indefinite W | Indefinite --- | Indefinite W | Indefinite --- |
| Bit 7 | Bit 6 | explanation |
|---|---|---|
| P2MD1 | P2MD0 | |
| 0 | 0 | 15 byte mode |
| 0 | 1 | 255 byte mode |
| 1 | 0 | SEGA RESERVED ( setting prohibited ) |
| 1 | 1 | 0 byte mode |
| Bit 5 | Bit 4 | explanation |
|---|---|---|
| P1MD1 | P1MD0 | |
| 0 | 0 | 15 byte mode |
| 0 | 1 | 255 byte mode |
| 1 | 0 | SEGA RESERVED ( setting prohibited ) |
| 1 | 1 | 0 byte mode |
| Bit 3 | explanation |
|---|---|
| PEN | |
| 0 | Do not return peripheral data |
| 1 | Returns peripheral data |
| Bit 1 | explanation |
|---|---|
| OPE | |
| 0 | Optimize |
| 1 | Do not optimize |
| IREG2 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 20100005H | F0H Write Only | |||||||
| SR | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 20100061H | 0 | 1 | PDE | RESB | − | − | − | − |
|
|
| OREG0 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 20100021H | STE | RESD | − | − | − | − | − | − |
| Bit 7 | explanation |
|---|---|
| STE | |
| 0 | Not SET TIME after SMPC cold reset Note 1 |
| 1 | SET TIME after SMPC cold reset Note 1 |
| Bit 6 | explanation |
|---|---|
| RESD | |
| 0 | Reset enable |
| 1 | Reset disable (default) |
| bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 | ||
|---|---|---|---|---|---|---|---|---|---|
| OREG1 | 20100023H | Year 1000 (BCD) | Year 100th (BCD) | ||||||
| OREG2 | 20100025H | Year 10th (BCD) | First place in the Christian era (BCD) | ||||||
| OREG3 | 20100027H | Day of the week (hexadecimal) Note 2 | Month (hexadecimal) Note 3 | ||||||
| day of week | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|---|
| value | 0H | 1H | 2H | 3H | 4H | 5H | 6H |
| Month | January | February | March | April | May | June | July | August | September | October | November | December |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| value | 1H | 2H | 3H | 4H | 5H | 6H | 7H | 8H | 9H | AH | BH | CH |
| bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 | ||
|---|---|---|---|---|---|---|---|---|---|
| OREG4 | 20100029H | Day 10 (BCD) | First place in the day (BCD) | ||||||
| OREG5 | 2010002BH | Toki tenth place (BCD) | First place in time (BCD) | ||||||
| OREG6 | 2010002DH | Tenth place (BCD) | 1st place (BCD) | ||||||
| OREG7 | 2010002FH | Second place (BCD) | First place in seconds (BCD) | ||||||
| OREG8 | 20100031H | 0 | 0 | 0 | 0 | 0 | 0 | CTG1 | CTG0 |
| OREG9 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 20100033H | Area code (00H ~ 0FH) | |||||||
| code | area | Main country names, etc. |
|---|---|---|
| 0H | Do not use | |
| 1H | Japan region | Japan |
| 2H | Asia NTSC region | Taiwan, South Korea, Philippines |
| 3H | SEGA RESERVED | |
| 4H | North America | United States, Canada, Latin America NTSC region (Brazil only) |
| 5H | SEGA RESERVED | |
| 6H | SEGA RESERVED | |
| 7H | SEGA RESERVED | |
| 8H | SEGA RESERVED | |
| 9H | SEGA RESERVED | |
| AH | SEGA RESERVED | |
| BH | SEGA RESERVED | |
| CH | European PAL region | Europe, Australia, South Africa, Latin America PAL region |
| DH | SEGA RESERVED | |
| EH | SEGA RESERVED | |
| FH | Do not use |
| OREG10 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 20100035H | 0 | DOTSEL | 1 | 1 | MSHNMI | 1 | SYSRES | SNDRES |
| OREG11 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 20100037H | − | CDRES | − | − | − | − | − | − |
| bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 | ||
|---|---|---|---|---|---|---|---|---|---|
| OREG12 | 20100039H | SMEM1 retention data | |||||||
| OREG13 | 2010003BH | SMEM2 retention data | |||||||
| OREG14 | 2010003DH | SMEM3 retention data | |||||||
| OREG15 | 2010003FH | SMEM4 retention data | |||||||
| OREG31 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 2010005FH | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Command code 17H SMPC interrupt cannot occur IREG 0 ~ 3 ORAG 31 Execution time max = xxx min = 40μsec
| bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 | ||
|---|---|---|---|---|---|---|---|---|---|
| OREG0 | 20100001H | Data setting to SMEM1 | |||||||
| OREG1 | 20100003H | Data setting to SMEM2 | |||||||
| OREG2 | 20100005H | Data setting to SMEM3 | |||||||
| OREG3 | 20100007H | Data setting to SMEM4 | |||||||
| OREG31 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
|---|---|---|---|---|---|---|---|---|
| 2010005FH | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 |
★ HARDWARE Manual ★ SMPC User's Manual