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

Subversion Repositories eco32

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

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 201 hellwig
#define VERSION         "1.06"
16 182 hellwig
#define PROMPT          "ECO32 > "
17
 
18
 
19 59 hellwig
int main(void) {
20
  char *line;
21
 
22 182 hellwig
  printf("\n\nECO32 Machine Monitor %s\n\n", VERSION);
23 59 hellwig
  initInstrTable();
24
  cpuSetPC(0xC0010000);
25
  cpuSetPSW(0x08000000);
26
  while (1) {
27 182 hellwig
    line = getLine(PROMPT);
28 59 hellwig
    addHist(line);
29
    execCommand(line);
30
  }
31
  return 0;
32
}

powered by: WebSVN 2.1.0

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