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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [main.c] - Blame information for rev 128

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 59 hellwig
/*
2
 * main.c -- the main program
3
 */
4
 
5
 
6
#include "common.h"
7
#include "stdarg.h"
8
#include "romlib.h"
9
#include "command.h"
10
#include "getline.h"
11
#include "instr.h"
12
#include "cpu.h"
13
 
14
 
15
int main(void) {
16
  char *line;
17
 
18
  printf("\n\nECO32 Machine Monitor 1.3\n\n");
19
  initInstrTable();
20
  cpuSetPC(0xC0010000);
21
  cpuSetPSW(0x08000000);
22
  while (1) {
23
    line = getLine("ECO32 > ");
24
    addHist(line);
25
    execCommand(line);
26
  }
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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