Command code 10H SMPC interrupt generation 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 ) Initial value undefined/Write Only |
IREG0 setting value | explanation |
---|---|
00H | date and time, cartridge code, area code, terminal status, SMEM, Do not return reset button data |
01H | date and time, cartridge code, area code, terminal status, SMEM, Return each data of reset button |
IREG1 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
---|---|---|---|---|---|---|---|---|
20100003H | P2MD1 | P2MD0 | P1MD1 | P1MD0 | PEN | 0 | OPE | 0 |
Indeterminate W | Indeterminate W | Indeterminate W | Indeterminate W | Indeterminate W | Indeterminate - | Indeterminate W | Indeterminate - |
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 | return peripheral data |
Bit 1 | explanation |
---|---|
OPE | |
0 | Optimize |
1 | no optimization |
IREG2 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
---|---|---|---|---|---|---|---|---|
20100005H | F0H Write Only |
S.R. | 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 | SMPC not SETTIME after cold reset Note 1 |
1 | Note 1 being SETTIME after SMPC cold reset |
Bit 6 | explanation |
---|---|
RESD | |
0 | reset enable |
1 | Reset disabled (default) |
bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 | ||
---|---|---|---|---|---|---|---|---|---|
OREG1 | 20100023H | Year 1000 (BCD) | Year 100 (BCD) | ||||||
OREG2 | 20100025H | Year number 10 (BCD) | First place in the Western calendar (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 | 10th place per day (BCD) | No. 1 per day (BCD) | ||||||
OREG5 | 2010002BH | 10th position (BCD) | 1st place (BCD) | ||||||
OREG6 | 2010002DH | Tenth place (BCD) | Minute 1st place (BCD) | ||||||
OREG7 | 2010002FH | Ten seconds (BCD) | Second place (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 | region | Main country names etc. |
---|---|---|
0H | Do not use | |
1H | Japan region | Japan |
2H | Asia NTSC region | Taiwan, Korea, Philippines |
3H | SEGA RESERVED | |
4H | North America region | 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 | Europe 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 retained data | |||||||
OREG13 | 2010003BH | SMEM2 retained data | |||||||
OREG14 | 2010003DH | SMEM3 retained data | |||||||
OREG15 | 2010003FH | SMEM4 retained data |
OREG31 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
---|---|---|---|---|---|---|---|---|
2010005FH | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Command code 17H SMPC interrupt generation disabled IREG 0 to 3 OREG 31 Execution time max=xxx min=40μsec
bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 | ||
---|---|---|---|---|---|---|---|---|---|
OREG0 | 20100001H | Data settings to SMEM1 | |||||||
OREG1 | 20100003H | Data settings to SMEM2 | |||||||
OREG2 | 20100005H | Data settings to SMEM3 | |||||||
OREG3 | 20100007H | Data settings to SMEM4 |
OREG31 | bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
---|---|---|---|---|---|---|---|---|
2010005FH | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 |