~ubuntu-branches/ubuntu/maverick/vice/maverick

« back to all changes in this revision

Viewing changes to src/plus4/plus4iec.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-02-01 11:30:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050201113026-3eyakzsmmheclvjg
Tags: 1.16-1
* New upstream version
* Fixes crash on 64-bit architectures (closes: #287640)
* x128 working again (closes: #286767)
* Works fine with /dev/dsp in use (not in the main changelog, but tested
  on my local machine as working).  Presumably, this also takes care of
  the issue with dsp being held.  I'm not sure if this is because I'm
  testing it on a 2.6 kernel now -- if you are still having problems
  with /dev/dsp, please reopen the bugs. (closes: #152952, #207942)
* Don't kill Makefile.in on clean

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
    iec_update_ports();
65
65
}
66
66
 
67
 
void iec_drive0_write(BYTE data)
68
 
{
69
 
    iecbus.drv_bus[8] = (((data << 3) & 0x40)
70
 
                        | ((data << 6) & ((~data ^ iecbus.cpu_bus) << 3)
71
 
                        & 0x80));
72
 
    iecbus.drv_data[8] = data;
73
 
    iec_update_ports();
74
 
}
75
 
 
76
 
void iec_drive1_write(BYTE data)
77
 
{
78
 
    iecbus.drv_bus[9] = (((data << 3) & 0x40)
79
 
                        | ((data << 6) & ((~data ^ iecbus.cpu_bus) << 3)
80
 
                        & 0x80));
81
 
    iecbus.drv_data[9] = data;
82
 
    iec_update_ports();
83
 
}
84
 
 
85
 
BYTE iec_drive0_read(void)
86
 
{
87
 
    return iecbus.drv_port;
88
 
}
89
 
 
90
 
BYTE iec_drive1_read(void)
 
67
void iec_drive_write(BYTE data, unsigned int dnr)
 
68
{
 
69
    iecbus.drv_bus[dnr + 8] = (((data << 3) & 0x40)
 
70
                              | ((data << 6) & ((~data ^ iecbus.cpu_bus) << 3)
 
71
                              & 0x80));
 
72
    iecbus.drv_data[dnr + 8] = data;
 
73
    iec_update_ports();
 
74
}
 
75
 
 
76
BYTE iec_drive_read(unsigned int dnr)
91
77
{
92
78
    return iecbus.drv_port;
93
79
}