| Previous | 15994 Revisions | Next |
| r12214 Wednesday 13th July, 2011 at 07:18:25 UTC by Firewave |
|---|
| fixed more clang warnings in MESS code (no whatsnew) |
| [src/mess/drivers] | atm.c pc8801.c pc9801.c pentagon.c scorpion.c x1.c |
| [src/mess/machine] | 990_hd.c 990_tap.c bbc.c coco.c dgn_beta.c psxcddrv.c thomflop.c |
| r12213 | r12214 | |
|---|---|---|
| 1289 | 1289 | if ((oprom[0] == 0x10) && (oprom[1] == 0x3F)) |
| 1290 | 1290 | { |
| 1291 | 1291 | call = oprom[2]; |
| 1292 | if ((call | |
| 1292 | if ((call | |
| 1293 | 1293 | { |
| 1294 | 1294 | sprintf(buffer, "OS9 %s", os9syscalls[call]); |
| 1295 | 1295 | result = 3; |
| r12213 | r12214 | |
|---|---|---|
| 3215 | 3215 | if ((oprom[0] == 0x10) && (oprom[1] == 0x3F)) |
| 3216 | 3216 | { |
| 3217 | 3217 | call = oprom[2]; |
| 3218 | if ((call | |
| 3218 | if ((call | |
| 3219 | 3219 | { |
| 3220 | 3220 | sprintf(buffer, "OS9 %s", os9syscalls[call]); |
| 3221 | 3221 | result = 3; |
| r12213 | r12214 | |
|---|---|---|
| 1003 | 1003 | */ |
| 1004 | 1004 | READ16_HANDLER(ti990_hdc_r) |
| 1005 | 1005 | { |
| 1006 | if ( | |
| 1006 | if ( | |
| 1007 | 1007 | return hdc.w[offset]; |
| 1008 | 1008 | else |
| 1009 | 1009 | return 0; |
| r12213 | r12214 | |
| 1014 | 1014 | */ |
| 1015 | 1015 | WRITE16_HANDLER(ti990_hdc_w) |
| 1016 | 1016 | { |
| 1017 | if ( | |
| 1017 | if ( | |
| 1018 | 1018 | { |
| 1019 | 1019 | /* write protect if a command is in progress */ |
| 1020 | 1020 | if (hdc.w[7] & w7_idle) |
| r12213 | r12214 | |
|---|---|---|
| 1710 | 1710 | |
| 1711 | 1711 | static READ8_HANDLER ( to7_network_r ) |
| 1712 | 1712 | { |
| 1713 | if ( offset | |
| 1713 | if ( offset | |
| 1714 | 1714 | return mc6854_r( space->machine().device("mc6854"), offset ); |
| 1715 | 1715 | |
| 1716 | 1716 | if ( offset == 8 ) |
| r12213 | r12214 | |
| 1729 | 1729 | |
| 1730 | 1730 | static WRITE8_HANDLER ( to7_network_w ) |
| 1731 | 1731 | { |
| 1732 | if ( offset | |
| 1732 | if ( offset | |
| 1733 | 1733 | mc6854_w( space->machine().device("mc6854"), offset, data ); |
| 1734 | 1734 | else |
| 1735 | 1735 | { |
| r12213 | r12214 | |
|---|---|---|
| 404 | 404 | printf("mess: read %d sectors from %d (secsize %d)\n",numsec,startsec,secsize); |
| 405 | 405 | #endif |
| 406 | 406 | |
| 407 | if ( | |
| 407 | if (1 | |
| 408 | 408 | { |
| 409 | 409 | // fin->seek((INT64)startsec*(INT64)bin_sector_size); |
| 410 | 410 |
| r12213 | r12214 | |
|---|---|---|
| 961 | 961 | READ16_DEVICE_HANDLER(ti990_tpc_r) |
| 962 | 962 | { |
| 963 | 963 | tap_990_t *tpc = get_safe_token(device); |
| 964 | if ( | |
| 964 | if ( | |
| 965 | 965 | return tpc->w[offset]; |
| 966 | 966 | else |
| 967 | 967 | return 0; |
| r12213 | r12214 | |
| 973 | 973 | WRITE16_DEVICE_HANDLER(ti990_tpc_w) |
| 974 | 974 | { |
| 975 | 975 | tap_990_t *tpc = get_safe_token(device); |
| 976 | if ( | |
| 976 | if ( | |
| 977 | 977 | { |
| 978 | 978 | /* write protect if a command is in progress */ |
| 979 | 979 | if (tpc->w[7] & w7_idle) |
| r12213 | r12214 | |
|---|---|---|
| 556 | 556 | // return space->machine().region("user1")->base()[offset+0x43c00]; |
| 557 | 557 | // }; |
| 558 | 558 | |
| 559 | if ( | |
| 559 | if ( | |
| 560 | 560 | { |
| 561 | 561 | return 0xff; |
| 562 | 562 | }; |
| r12213 | r12214 | |
|---|---|---|
| 1254 | 1254 | if(state->m_gate_a20 == 0) |
| 1255 | 1255 | offset &= 0xfffff; |
| 1256 | 1256 | |
| 1257 | if ( | |
| 1257 | if ( | |
| 1258 | 1258 | else if(offset >= 0x000a0000 && offset <= 0x000a3fff) { return pc9801_tvram_r(space,offset-0xa0000); } |
| 1259 | 1259 | else if(offset >= 0x000a4000 && offset <= 0x000a4fff) { return pc9801rs_knjram_r(space,offset & 0xfff); } |
| 1260 | 1260 | else if(offset >= 0x000a8000 && offset <= 0x000bffff) { return pc9801_gvram_r(space,offset-0xa8000); } |
| r12213 | r12214 | |
| 1274 | 1274 | if(state->m_gate_a20 == 0) |
| 1275 | 1275 | offset &= 0xfffff; |
| 1276 | 1276 | |
| 1277 | if ( | |
| 1277 | if ( | |
| 1278 | 1278 | else if(offset >= 0x000a0000 && offset <= 0x000a3fff) { pc9801_tvram_w(space,offset-0xa0000,data); } |
| 1279 | 1279 | else if(offset >= 0x000a4000 && offset <= 0x000a4fff) { pc9801rs_knjram_w(space,offset & 0xfff,data); } |
| 1280 | 1280 | else if(offset >= 0x000a8000 && offset <= 0x000bffff) { pc9801_gvram_w(space,offset-0xa8000,data); } |
| r12213 | r12214 | |
|---|---|---|
| 1344 | 1344 | x1_state *state = space->machine().driver_data<x1_state>(); |
| 1345 | 1345 | UINT8 ex_mask; |
| 1346 | 1346 | |
| 1347 | if ( | |
| 1347 | if ( | |
| 1348 | 1348 | else if(offset >= 0x4000 && offset <= 0x7fff) { ex_mask = 6; } |
| 1349 | 1349 | else if(offset >= 0x8000 && offset <= 0xbfff) { ex_mask = 5; } |
| 1350 | 1350 | else { ex_mask = 3; } |
| r12213 | r12214 | |
|---|---|---|
| 251 | 251 | state->m_ROMSelection = 3; |
| 252 | 252 | betadisk_enable(beta); |
| 253 | 253 | } |
| 254 | if( | |
| 254 | if( | |
| 255 | 255 | { |
| 256 | 256 | state->m_ram_disabled_by_beta = 1; |
| 257 | 257 | direct.explicit_configure(0x0000, 0x3fff, 0x3fff, machine.region("maincpu")->base() + 0x010000 + (state->m_ROMSelection<<14)); |
| r12213 | r12214 | |
|---|---|---|
| 41 | 41 | betadisk_enable(beta); |
| 42 | 42 | |
| 43 | 43 | } |
| 44 | if( | |
| 44 | if( | |
| 45 | 45 | { |
| 46 | 46 | if (state->m_ROMSelection == 3) { |
| 47 | 47 | direct.explicit_configure(0x0000, 0x3fff, 0x3fff, machine.region("maincpu")->base() + 0x018000); |
| r12213 | r12214 | |
|---|---|---|
| 30 | 30 | betadisk_enable(beta); |
| 31 | 31 | |
| 32 | 32 | } |
| 33 | if( | |
| 33 | if( | |
| 34 | 34 | { |
| 35 | 35 | if (state->m_ROMSelection == 3) { |
| 36 | 36 | if (beta->started()) { |
| r12213 | r12214 | |
|---|---|---|
| 780 | 780 | static READ8_HANDLER( pc8801_mem_r ) |
| 781 | 781 | { |
| 782 | 782 | pc8801_state *state = space->machine().driver_data<pc8801_state>(); |
| 783 | if(offset | |
| 783 | if(offset | |
| 784 | 784 | { |
| 785 | 785 | if(state->m_extram_mode & 1) |
| 786 | 786 | return pc8801_ext_wram_r(space,offset | (state->m_extram_bank * 0x8000)); |
| r12213 | r12214 | |
| 849 | 849 | static WRITE8_HANDLER( pc8801_mem_w ) |
| 850 | 850 | { |
| 851 | 851 | pc8801_state *state = space->machine().driver_data<pc8801_state>(); |
| 852 | if(offset | |
| 852 | if(offset | |
| 853 | 853 | { |
| 854 | 854 | if(state->m_extram_mode & 0x10) |
| 855 | 855 | pc8801_ext_wram_w(space,offset | (state->m_extram_bank * 0x8000),data); |
| Previous | 15994 Revisions | Next |