1 /*
2 * cbm2iec.c - IEC bus handling for the CBM2.
3 *
4 * Written by
5 * Daniel Sladic <sladic@eecg.toronto.edu>
6 * Andre Fachat <fachat@physik.tu-chemnitz.de>
7 *
8 * This file is part of VICE, the Versatile Commodore Emulator.
9 * See README for copyright notice.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24 * 02111-1307 USA.
25 *
26 */
27
28 #include "vice.h"
29
30 #include <stdio.h>
31
32 #include "cbm2iec.h"
33 #include "iecbus.h"
34 #include "iecdrive.h"
35 #include "types.h"
36 #include "debug.h"
37
38
cbm2iec_init(void)39 void cbm2iec_init(void)
40 {
41 }
42
iec_update_cpu_bus(BYTE data)43 void iec_update_cpu_bus(BYTE data)
44 {
45
46 }
47
iec_update_ports(void)48 void iec_update_ports(void)
49 {
50 /* Not used for now. */
51 }
52
iec_update_ports_embedded(void)53 void iec_update_ports_embedded(void)
54 {
55 iec_update_ports();
56 }
57
iecbus_drive_port(void)58 iecbus_t *iecbus_drive_port(void)
59 {
60 return NULL;
61 }
62
iec_drive_read(unsigned int dnr)63 uint8_t iec_drive_read(unsigned int dnr)
64 {
65 /* FIXME: unused */
66 return 0;
67 }
68
iec_drive_write(uint8_t data,unsigned int dnr)69 void iec_drive_write(uint8_t data, unsigned int dnr)
70 {
71 /* FIXME: unused */
72 iec_update_ports();
73 }
74
parallel_cable_drive_read(int type,int handshake)75 uint8_t parallel_cable_drive_read(int type, int handshake)
76 {
77 return 0;
78 }
79
parallel_cable_drive_write(int type,uint8_t data,int handshake,unsigned int dnr)80 void parallel_cable_drive_write(int type, uint8_t data, int handshake, unsigned int dnr)
81 {
82 }
83
iec_available_busses(void)84 int iec_available_busses(void)
85 {
86 return IEC_BUS_IEEE;
87 }
88
iec_fast_drive_direction(int direction,unsigned int dnr)89 void iec_fast_drive_direction(int direction, unsigned int dnr)
90 {
91 }
92
iec_fast_drive_write(uint8_t data,unsigned int dnr)93 void iec_fast_drive_write(uint8_t data, unsigned int dnr)
94 {
95 }
96
97
98 #if (defined(DEBUG) || defined(WIN32_COMPILE) || defined(OS2_COMPILE))
debug_iec_drv_read(unsigned int data)99 void debug_iec_drv_read(unsigned int data)
100 {
101 /* FIXME: unused */
102 }
103
debug_iec_drv_write(unsigned int data)104 void debug_iec_drv_write(unsigned int data)
105 {
106 /* FIXME: unused */
107 }
108
debug_iec_bus_read(unsigned int data)109 void debug_iec_bus_read(unsigned int data)
110 {
111 /* FIXME: unused */
112 }
113
debug_iec_bus_write(unsigned int data)114 void debug_iec_bus_write(unsigned int data)
115 {
116 /* FIXME: unused */
117 }
118 #endif
119
120
121 /* KLUDGES: dummy to satisfy linker, unused */
122 uint8_t plus4tcbm_outputa[2], plus4tcbm_outputb[2], plus4tcbm_outputc[2];
123
plus4tcbm_update_pa(uint8_t byte,unsigned int dnr)124 void plus4tcbm_update_pa(uint8_t byte, unsigned int dnr)
125 {
126 }
127
plus4tcbm_update_pb(uint8_t byte,unsigned int dnr)128 void plus4tcbm_update_pb(uint8_t byte, unsigned int dnr)
129 {
130 }
131
plus4tcbm_update_pc(uint8_t byte,unsigned int dnr)132 void plus4tcbm_update_pc(uint8_t byte, unsigned int dnr)
133 {
134 }
135
136