/[gxemul]/trunk/src/devices/dev_disk.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_disk.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 12 by dpavlin, Mon Oct 8 16:18:38 2007 UTC revision 18 by dpavlin, Mon Oct 8 16:19:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_disk.c,v 1.7 2005/08/04 10:53:25 debug Exp $   *  $Id: dev_disk.c,v 1.8 2005/10/26 14:37:03 debug Exp $
29   *   *
30   *  Basic "Disk" device. This is a simple test device which can be used to   *  Basic "Disk" device. This is a simple test device which can be used to
31   *  read and write data from disk devices.   *  read and write data from disk devices.
# Line 83  int dev_disk_access(struct cpu *cpu, str Line 83  int dev_disk_access(struct cpu *cpu, str
83          struct disk_data *d = (struct disk_data *) extra;          struct disk_data *d = (struct disk_data *) extra;
84          uint64_t idata = 0, odata = 0;          uint64_t idata = 0, odata = 0;
85    
86          idata = memory_readmax64(cpu, data, len);          if (writeflag == MEM_WRITE)
87                    idata = memory_readmax64(cpu, data, len);
88    
89          switch (relative_addr) {          switch (relative_addr) {
90          case 0x00:          case 0x00:

Legend:
Removed from v.12  
changed lines
  Added in v.18

  ViewVC Help
Powered by ViewVC 1.1.26