src/mame/drivers/igs017.c
| r15022 | r15023 | |
| 1854 | 1854 | { |
| 1855 | 1855 | case 0x03: |
| 1856 | 1856 | { |
| 1857 | | UINT8 a = BITSWAP8(m_prot[0], 9,9,1,9,2,5,4,7); // 9 means 0 value |
| 1858 | | UINT8 b = BITSWAP8(m_prot[1], 5,2,9,7,9,9,9,9); |
| 1857 | UINT8 a = BITSWAP8((UINT16)m_prot[0], 9,9,1,9,2,5,4,7); // 9 means 0 value |
| 1858 | UINT8 b = BITSWAP8((UINT16)m_prot[1], 5,2,9,7,9,9,9,9); |
| 1859 | 1859 | return a | b; |
| 1860 | 1860 | } |
| 1861 | 1861 | |
src/mame/drivers/cubeqst.c
| r15022 | r15023 | |
| 535 | 535 | MCFG_LASERDISC_SIMUTREK_ADD("laserdisc") |
| 536 | 536 | MCFG_LASERDISC_OVERLAY_STATIC(CUBEQST_HBLANK, CUBEQST_VCOUNT, cubeqst) |
| 537 | 537 | MCFG_LASERDISC_OVERLAY_CLIP(0, 320-1, 0, 256-8) |
| 538 | | MCFG_LASERDISC_OVERLAY_POSITION(0.002, -0.018) |
| 539 | | MCFG_LASERDISC_OVERLAY_SCALE(1.0, 1.030) |
| 538 | MCFG_LASERDISC_OVERLAY_POSITION(0.002f, -0.018f) |
| 539 | MCFG_LASERDISC_OVERLAY_SCALE(1.0f, 1.030f) |
| 540 | 540 | |
| 541 | 541 | MCFG_LASERDISC_SCREEN_ADD_NTSC("screen", "laserdisc") |
| 542 | 542 | |
src/emu/devcb.h
| r15022 | r15023 | |
| 117 | 117 | |
| 118 | 118 | // static template for a read16 stub function that calls through a given READ16_MEMBER |
| 119 | 119 | template<class _Class, UINT16 (_Class::*_Function)(address_space &, offs_t, UINT16)> |
| 120 | | UINT16 devcb_stub16(device_t *device, offs_t offset, UINT16 mask=0xffff) |
| 120 | UINT16 devcb_stub16(device_t *device, offs_t offset, UINT16 mask) |
| 121 | 121 | { |
| 122 | 122 | _Class *target = downcast<_Class *>(device); |
| 123 | 123 | return (target->*_Function)(*device->machine().memory().first_space(), offset, mask); |
| r15022 | r15023 | |
| 141 | 141 | |
| 142 | 142 | // static template for a write16 stub function that calls through a given WRITE16_MEMBER |
| 143 | 143 | template<class _Class, void (_Class::*_Function)(address_space &, offs_t, UINT16, UINT16)> |
| 144 | | void devcb_stub16(device_t *device, offs_t offset, UINT16 data, UINT16 mask=0xffff) |
| 144 | void devcb_stub16(device_t *device, offs_t offset, UINT16 data, UINT16 mask) |
| 145 | 145 | { |
| 146 | 146 | _Class *target = downcast<_Class *>(device); |
| 147 | 147 | (target->*_Function)(*device->machine().memory().first_space(), offset, data, mask); |
src/lib/formats/adam_cas.c
| r15022 | r15023 | |
| 58 | 58 | // Store byte of data
|
| 59 | 59 | casserr_t coladam_put_byte(cassette_image *cass, int channel, double *time_index, int byte, int *prev_sign)
|
| 60 | 60 | {
|
| 61 | | casserr_t err;
|
| 61 | casserr_t err = CASSETTE_ERROR_SUCCESS;
|
| 62 | 62 | for (int i = 0; i < 8; i++)
|
| 63 | 63 | {
|
| 64 | 64 | if(byte & 0x80)
|
| r15022 | r15023 | |
| 127 | 127 | double time = 0.;
|
| 128 | 128 | int i, block, prev_sign=-1;
|
| 129 | 129 | UINT8 buffer[0x400];
|
| 130 | | casserr_t err;
|
| 130 | casserr_t err = CASSETTE_ERROR_SUCCESS;
|
| 131 | 131 | |
| 132 | 132 | // It would appear that data packs that originally had the type GW data layout and headers work fine when converted to type
|
| 133 | 133 | // HE. Thus we set all tapes to type HE.
|
| r15022 | r15023 | |
| 194 | 194 | }
|
| 195 | 195 | }
|
| 196 | 196 | |
| 197 | | if (err)
|
| 198 | | return err;
|
| 199 | | |
| 200 | | return CASSETTE_ERROR_SUCCESS;
|
| 197 | return err;
|
| 201 | 198 | }
|
| 202 | 199 | |
| 203 | 200 | |