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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [monitor/] [monitor/] [common/] [start.h] - Blame information for rev 261

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

Line No. Rev Author Line
1 59 hellwig
/*
2
 * start.h -- ECO32 ROM monitor startup and support routines
3
 */
4
 
5
 
6
#ifndef _START_H_
7
#define _START_H_
8
 
9
 
10
typedef struct {
11
  Word reg[32];                 /* general purpose registers */
12
  Word psw;                     /* PSW */
13
  Word tlbIndex;                /* TLB index register */
14
  Word tlbHi;                   /* TLB EntryHi register */
15
  Word tlbLo;                   /* TLB EntryLo register */
16 84 hellwig
  Word badAddr;                 /* bad address register */
17 180 hellwig
  Word badAccs;                 /* bad access register */
18 59 hellwig
} UserContext;
19
 
20
typedef struct {
21
  Word r31;                     /* return address */
22
  Word r29;                     /* stack pointer */
23
  Word r16;                     /* local variable */
24
  Word r17;                     /* local variable */
25
  Word r18;                     /* local variable */
26
  Word r19;                     /* local variable */
27
  Word r20;                     /* local variable */
28
  Word r21;                     /* local variable */
29
  Word r22;                     /* local variable */
30
  Word r23;                     /* local variable */
31
} MonitorState;
32
 
33
 
34 185 hellwig
void setcon(Byte ctl);
35 59 hellwig
int cinchk(void);
36 185 hellwig
char cin(void);
37 59 hellwig
int coutchk(void);
38
void cout(char c);
39
 
40
int dskcap(int dskno);
41
int dskio(int dskno, char cmd, int sct, Word addr, int nscts);
42
 
43
Word getTLB_HI(int index);
44
Word getTLB_LO(int index);
45
void setTLB(int index, Word entryHi, Word entryLo);
46
 
47
Bool saveState(MonitorState *msp);
48
 
49
extern MonitorState *monitorReturn;
50
extern UserContext userContext;
51
 
52
void resume(void);
53
 
54
 
55
#endif /* _START_H_ */

powered by: WebSVN 2.1.0

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