Previous 15994 Revisions Next

r14227 Friday 27th January, 2012 at 08:18:36 UTC by Miodrag Milanović
reverted some changes back since core changed (no whatsnew)
[src/mess/machine]coco_fdc.c coco_multi.c comx_eb.c isa_fdc.c kc_d004.c
[src/mess/video]isa_mda.c

src/mess/machine/isa_fdc.c
r14226r14227
144144
145145static WRITE_LINE_DEVICE_HANDLER(  pc_fdc_hw_interrupt )
146146{
147   isa8_fdc_device   *fdc  = downcast<isa8_fdc_device *>(device);
147   isa8_fdc_device   *fdc  = downcast<isa8_fdc_device *>(device->owner());
148148
149149   fdc->int_state = state;
150150
r14226r14227
159159
160160static WRITE_LINE_DEVICE_HANDLER( pc_fdc_hw_dma_drq )
161161{
162   isa8_fdc_device   *fdc  = downcast<isa8_fdc_device *>(device);
162   isa8_fdc_device   *fdc  = downcast<isa8_fdc_device *>(device->owner());
163163   fdc->dma_state = state;
164164
165165   /* if dma is not enabled, drqs are masked */
r14226r14227
244244   /* changing the DMA enable bit, will affect the dma drq state
245245    from reaching us - if dma is enabled this will send it through
246246    otherwise it will be ignored */
247   pc_fdc_hw_dma_drq(fdc, fdc->dma_state);
247   pc_fdc_hw_dma_drq(fdc->m_upd765, fdc->dma_state);
248248
249249   /* changing the DMA enable bit, will affect the irq state
250250    from reaching us - if dma is enabled this will send it through
251251    otherwise it will be ignored */
252   pc_fdc_hw_interrupt(fdc, fdc->int_state);
252   pc_fdc_hw_interrupt(fdc->m_upd765, fdc->int_state);
253253
254254   /* reset? */
255255   if ((fdc->digital_output_register & PC_FDC_FLAGS_DOR_FDC_ENABLED)==0)
src/mess/machine/coco_multi.c
r14226r14227
8484
8585WRITE_LINE_DEVICE_HANDLER(multi_cart_w)
8686{
87   cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner());
87   cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner()->owner());
8888   cart->m_cart_callback.writeline(device,state);
8989}
9090
9191WRITE_LINE_DEVICE_HANDLER(multi_nmi_w)
9292{
93   cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner());
93   cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner()->owner());
9494   cart->m_nmi_callback.writeline(device,state);
9595}
9696
9797WRITE_LINE_DEVICE_HANDLER(multi_halt_w)
9898{
99   cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner());
99   cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner()->owner());
100100   cart->m_halt_callback.writeline(device,state);
101101}
102102
src/mess/machine/coco_fdc.c
r14226r14227
133133
134134static WRITE_LINE_DEVICE_HANDLER( fdc_intrq_w )
135135{
136   coco_fdc_device *fdc = dynamic_cast<coco_fdc_device *>(device);
136   coco_fdc_device *fdc = dynamic_cast<coco_fdc_device *>(device->owner());
137137   fdc->set_intrq(state);
138138   fdc->update_lines();
139139}
r14226r14227
145145
146146static WRITE_LINE_DEVICE_HANDLER( fdc_drq_w )
147147{
148   coco_fdc_device *fdc = dynamic_cast<coco_fdc_device *>(device);
148   coco_fdc_device *fdc = dynamic_cast<coco_fdc_device *>(device->owner());
149149   fdc->set_drq(state);
150150   fdc->update_lines();
151151}
src/mess/machine/kc_d004.c
r14226r14227
7070
7171static device_t *kc_d004_get_fdd(device_t *device, int floppy_index)
7272{
73   kc_d004_device* owner = dynamic_cast<kc_d004_device *>(device);
73   kc_d004_device* owner = dynamic_cast<kc_d004_device *>(device->owner());
7474   return owner->get_active_fdd();
7575}
7676
src/mess/machine/comx_eb.c
r14226r14227
103103
104104WRITE_LINE_DEVICE_HANDLER( int_w )
105105{
106   comx_eb_device *eb = downcast<comx_eb_device *>(device);
106   comx_eb_device *eb = downcast<comx_eb_device *>(device->owner());
107107   eb->set_int(device->tag(), state);
108108}
109109
110110WRITE_LINE_DEVICE_HANDLER( ef4_w )
111111{
112   comx_eb_device *eb = downcast<comx_eb_device *>(device);
112   comx_eb_device *eb = downcast<comx_eb_device *>(device->owner());
113113   eb->set_ef4(device->tag(), state);
114114}
115115
116116WRITE_LINE_DEVICE_HANDLER( wait_w )
117117{
118   comx_expansion_slot_device *slot = dynamic_cast<comx_expansion_slot_device *>(device->owner());
118   comx_expansion_slot_device *slot = dynamic_cast<comx_expansion_slot_device *>(device->owner()->owner());
119119   slot->wait_w(state);
120120}
121121
122122WRITE_LINE_DEVICE_HANDLER( clear_w )
123123{
124   comx_expansion_slot_device *slot = dynamic_cast<comx_expansion_slot_device *>(device->owner());
124   comx_expansion_slot_device *slot = dynamic_cast<comx_expansion_slot_device *>(device->owner()->owner());
125125   slot->clear_w(state);
126126}
127127
src/mess/video/isa_mda.c
r14226r14227
9090
9191static WRITE_LINE_DEVICE_HANDLER(pc_cpu_line)
9292{
93   isa8_mda_device   *mda  = downcast<isa8_mda_device *>(device);
93   isa8_mda_device   *mda  = downcast<isa8_mda_device *>(device->owner());
9494   mda->m_isa->irq7_w(state);
9595}
9696static const pc_lpt_interface pc_lpt_config =

Previous 15994 Revisions Next


© 1998-2018 The MESS Team