Previous 15994 Revisions Next

r13894 Friday 6th January, 2012 at 11:39:12 UTC by Miodrag Milanović
removed some trampolines (no whatsnew)
[src/mess/drivers]rm380z.c

src/mess/drivers/rm380z.c
r13893r13894
9090   {
9191   }
9292
93   void port_1bfc_write(int offset,UINT8 data);
94   UINT8 port_1bfc_read(int offset);
95
9693   DECLARE_READ8_MEMBER( port_fbfc_read );
9794   DECLARE_WRITE8_MEMBER( port_fbfc_write );
9895
99   void port_write(int offset,UINT8 data);
100   UINT8 port_read(int offset);
101
10296   DECLARE_READ8_MEMBER( main_read );
10397   DECLARE_WRITE8_MEMBER( main_write );
10498
r13893r13894
110104   int keyboard_decode();
111105};
112106
113//
114
115void rm380z_state::port_1bfc_write(int offset,UINT8 data)
116{
117   port_write(offset, data );
118}
119
120UINT8 rm380z_state::port_1bfc_read(int offset)
121{
122   return port_read(offset );
123}
124
125107WRITE8_MEMBER( rm380z_state::port_fbfc_write )
126108{
127   port_write(offset, data );
128}
129
130READ8_MEMBER( rm380z_state::port_fbfc_read )
131{
132   return port_read(offset );
133}
134
135void rm380z_state::port_write(int offset,UINT8 data)
136{
137109   switch ( offset )
138110   {
139111   case 0x00:      // PORT0
r13893r13894
161133      break;
162134   }
163135}
164
165UINT8 rm380z_state::port_read(int offset)
136READ8_MEMBER( rm380z_state::port_fbfc_read )
166137{
167138   UINT8 data = 0xFF;
168139
r13893r13894
266237   {
267238      if ((offset>=0x1bfc)&&(offset<=0x1bff))
268239      {
269         state->port_1bfc_write(offset-0x1bfc,data);
240         state->port_fbfc_write(space,offset-0x1bfc,data);
270241         return;
271242      }
272243
r13893r13894
315286   {
316287      if ((offset>=0x1bfc)&&(offset<=0x1bff))
317288      {
318         return state->port_1bfc_read(offset-0x1bfc);
289         return state->port_fbfc_read(space,offset-0x1bfc);
319290      }
320291
321292      if ((offset>=0x0000)&&(offset<0x1000))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team