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

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

revision 4 by dpavlin, Mon Oct 8 16:18:00 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_kn210.c,v 1.11 2005/02/24 15:38:34 debug Exp $   *  $Id: dev_kn210.c,v 1.13 2005/11/13 00:14:09 debug Exp $
29   *     *  
30   *  DECsystem 5400 (KN210) stuff   *  DECsystem 5400 (KN210) stuff
31   */   */
# Line 56  int dev_kn210_access(struct cpu *cpu, st Line 56  int dev_kn210_access(struct cpu *cpu, st
56  {  {
57          uint64_t idata = 0, odata = 0;          uint64_t idata = 0, odata = 0;
58    
59          idata = memory_readmax64(cpu, data, len);          if (writeflag == MEM_WRITE)
60                    idata = memory_readmax64(cpu, data, len);
61    
62          switch (relative_addr) {          switch (relative_addr) {
63          default:          default:
# Line 92  int devinit_kn210(struct devinit *devini Line 93  int devinit_kn210(struct devinit *devini
93    
94          memory_device_register(devinit->machine->memory,          memory_device_register(devinit->machine->memory,
95              devinit->name, devinit->addr, DEV_KN210_LENGTH,              devinit->name, devinit->addr, DEV_KN210_LENGTH,
96              dev_kn210_access, d, MEM_DEFAULT, NULL);              dev_kn210_access, d, DM_DEFAULT, NULL);
97    
98          return 1;          return 1;
99  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26