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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [main.c] - Diff between revs 182 and 200

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 182 Rev 200
/*
/*
 * main.c -- the main program
 * main.c -- the main program
 */
 */
 
 
 
 
#include "common.h"
#include "common.h"
#include "stdarg.h"
#include "stdarg.h"
#include "romlib.h"
#include "romlib.h"
#include "command.h"
#include "command.h"
#include "getline.h"
#include "getline.h"
#include "instr.h"
#include "instr.h"
#include "cpu.h"
#include "cpu.h"
 
 
 
 
#define VERSION         "1.04"
#define VERSION         "1.05"
#define PROMPT          "ECO32 > "
#define PROMPT          "ECO32 > "
 
 
 
 
int main(void) {
int main(void) {
  char *line;
  char *line;
 
 
  printf("\n\nECO32 Machine Monitor %s\n\n", VERSION);
  printf("\n\nECO32 Machine Monitor %s\n\n", VERSION);
  initInstrTable();
  initInstrTable();
  cpuSetPC(0xC0010000);
  cpuSetPC(0xC0010000);
  cpuSetPSW(0x08000000);
  cpuSetPSW(0x08000000);
  while (1) {
  while (1) {
    line = getLine(PROMPT);
    line = getLine(PROMPT);
    addHist(line);
    addHist(line);
    execCommand(line);
    execCommand(line);
  }
  }
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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