OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [memory.c] - Diff between revs 8 and 25

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 8 Rev 25
Line 17... Line 17...
#include "timer.h"
#include "timer.h"
#include "dspkbd.h"
#include "dspkbd.h"
#include "term.h"
#include "term.h"
#include "disk.h"
#include "disk.h"
#include "output.h"
#include "output.h"
 
#include "shutdown.h"
#include "graph.h"
#include "graph.h"
 
 
 
 
static Byte *rom;
static Byte *rom;
static Byte *mem;
static Byte *mem;
Line 71... Line 72...
  }
  }
  if ((pAddr & IO_DEV_MASK) == OUTPUT_BASE) {
  if ((pAddr & IO_DEV_MASK) == OUTPUT_BASE) {
    data = outputRead(pAddr & IO_REG_MASK);
    data = outputRead(pAddr & IO_REG_MASK);
    return data;
    return data;
  }
  }
 
  if ((pAddr & IO_DEV_MASK) == SHUTDOWN_BASE) {
 
    data = shutdownRead(pAddr & IO_REG_MASK);
 
    return data;
 
  }
  if ((pAddr & IO_DEV_MASK) >= GRAPH_BASE) {
  if ((pAddr & IO_DEV_MASK) >= GRAPH_BASE) {
    data = graphRead(pAddr & IO_GRAPH_MASK);
    data = graphRead(pAddr & IO_GRAPH_MASK);
    return data;
    return data;
  }
  }
  /* throw bus timeout exception */
  /* throw bus timeout exception */
Line 157... Line 162...
  }
  }
  if ((pAddr & IO_DEV_MASK) == OUTPUT_BASE) {
  if ((pAddr & IO_DEV_MASK) == OUTPUT_BASE) {
    outputWrite(pAddr & IO_REG_MASK, data);
    outputWrite(pAddr & IO_REG_MASK, data);
    return;
    return;
  }
  }
 
  if ((pAddr & IO_DEV_MASK) == SHUTDOWN_BASE) {
 
    shutdownWrite(pAddr & IO_REG_MASK, data);
 
    return;
 
  }
  if ((pAddr & IO_DEV_MASK) >= GRAPH_BASE) {
  if ((pAddr & IO_DEV_MASK) >= GRAPH_BASE) {
    graphWrite(pAddr & IO_GRAPH_MASK, data);
    graphWrite(pAddr & IO_GRAPH_MASK, data);
    return;
    return;
  }
  }
  /* throw bus timeout exception */
  /* throw bus timeout exception */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.