@@ -8,7 +8,7 @@ PC-9801 S[oftware]DIP interface
8
8
- https://bitchinbits.foolproofdesigns.com/pc-9821/pc-9821-cheat-sheet/
9
9
10
10
TODO:
11
- - Discards saved settings in PC-9821 and later;
11
+ - Discards saved settings in PC-9821 and later, access thru MMIO?
12
12
13
13
===================================================================================================
14
14
@@ -65,16 +65,16 @@ bool pc98_sdip_device::nvram_write(util::write_stream &file)
65
65
}
66
66
67
67
68
- template < unsigned port> u8 pc98_sdip_device::read (offs_t offset)
68
+ u8 pc98_sdip_device::read (offs_t offset)
69
69
{
70
- u8 sdip_offset = port + (m_bank * 12 );
70
+ u8 sdip_offset = offset + (m_bank * 12 );
71
71
72
72
return m_sdip_ram[sdip_offset];
73
73
}
74
74
75
- template < unsigned port> void pc98_sdip_device::write (offs_t offset, u8 data)
75
+ void pc98_sdip_device::write (offs_t offset, u8 data)
76
76
{
77
- u8 sdip_offset = port + (m_bank * 12 );
77
+ u8 sdip_offset = offset + (m_bank * 12 );
78
78
79
79
m_sdip_ram[sdip_offset] = data;
80
80
}
@@ -83,29 +83,3 @@ void pc98_sdip_device::bank_w(int state)
83
83
{
84
84
m_bank = !!(state);
85
85
}
86
-
87
- template u8 pc98_sdip_device::read<0 >(offs_t offset);
88
- template u8 pc98_sdip_device::read<1 >(offs_t offset);
89
- template u8 pc98_sdip_device::read<2 >(offs_t offset);
90
- template u8 pc98_sdip_device::read<3 >(offs_t offset);
91
- template u8 pc98_sdip_device::read<4 >(offs_t offset);
92
- template u8 pc98_sdip_device::read<5 >(offs_t offset);
93
- template u8 pc98_sdip_device::read<6 >(offs_t offset);
94
- template u8 pc98_sdip_device::read<7 >(offs_t offset);
95
- template u8 pc98_sdip_device::read<8 >(offs_t offset);
96
- template u8 pc98_sdip_device::read<9 >(offs_t offset);
97
- template u8 pc98_sdip_device::read<10 >(offs_t offset);
98
- template u8 pc98_sdip_device::read<11 >(offs_t offset);
99
-
100
- template void pc98_sdip_device::write<0 >(offs_t offset, u8 data);
101
- template void pc98_sdip_device::write<1 >(offs_t offset, u8 data);
102
- template void pc98_sdip_device::write<2 >(offs_t offset, u8 data);
103
- template void pc98_sdip_device::write<3 >(offs_t offset, u8 data);
104
- template void pc98_sdip_device::write<4 >(offs_t offset, u8 data);
105
- template void pc98_sdip_device::write<5 >(offs_t offset, u8 data);
106
- template void pc98_sdip_device::write<6 >(offs_t offset, u8 data);
107
- template void pc98_sdip_device::write<7 >(offs_t offset, u8 data);
108
- template void pc98_sdip_device::write<8 >(offs_t offset, u8 data);
109
- template void pc98_sdip_device::write<9 >(offs_t offset, u8 data);
110
- template void pc98_sdip_device::write<10 >(offs_t offset, u8 data);
111
- template void pc98_sdip_device::write<11 >(offs_t offset, u8 data);
0 commit comments