/[gxemul]/trunk/src/devices/dev_fdc.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_fdc.c

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

revision 6 by dpavlin, Mon Oct 8 16:18:11 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_fdc.c,v 1.12 2005/05/29 16:04:28 debug Exp $   *  $Id: dev_fdc.c,v 1.14 2005/11/13 00:14:09 debug Exp $
29   *     *  
30   *  PC-style floppy controller.   *  PC-style floppy controller.
31   *   *
# Line 67  int dev_fdc_access(struct cpu *cpu, stru Line 67  int dev_fdc_access(struct cpu *cpu, stru
67          int i;          int i;
68          struct fdc_data *d = extra;          struct fdc_data *d = extra;
69    
70          idata = memory_readmax64(cpu, data, len);          if (writeflag == MEM_WRITE)
71                    idata = memory_readmax64(cpu, data, len);
72    
73          switch (relative_addr) {          switch (relative_addr) {
74          case 0x04:          case 0x04:
# Line 109  int devinit_fdc(struct devinit *devinit) Line 110  int devinit_fdc(struct devinit *devinit)
110    
111          memory_device_register(devinit->machine->memory, devinit->name,          memory_device_register(devinit->machine->memory, devinit->name,
112              devinit->addr, DEV_FDC_LENGTH, dev_fdc_access, d,              devinit->addr, DEV_FDC_LENGTH, dev_fdc_access, d,
113              MEM_DEFAULT, NULL);              DM_DEFAULT, NULL);
114    
115          return 1;          return 1;
116  }  }

Legend:
Removed from v.6  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26