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

Subversion Repositories thor

[/] [thor/] [trunk/] [software/] [emuThor/] [source/] [clsSystem.h] - Blame information for rev 32

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

Line No. Rev Author Line
1 30 robfinch
#pragma once
2 32 robfinch
#include "clsThor.h"
3 30 robfinch
 
4
extern char refscreen;
5
extern unsigned int dataBreakpoints[30];
6
extern int numDataBreakpoints;
7 32 robfinch
extern bool runstop;
8 30 robfinch
extern volatile unsigned __int8 keybd_status;
9
extern volatile unsigned __int8 keybd_scancode;
10
 
11
class clsSystem
12
{
13
public:
14
        unsigned __int64 memory[16777216];      // 128 MB
15
        unsigned __int64 rom[32768];
16
        unsigned long VideoMem[4096];
17
        bool VideoMemDirty[4096];
18 32 robfinch
        unsigned long DBGVideoMem[4096];
19
        bool DBGVideoMemDirty[4096];
20 30 robfinch
        unsigned int leds;
21
        int m_z;
22
        int m_w;
23
        char write_error;
24
        unsigned int radr1;
25
        unsigned int radr2;
26
        bool WriteROM;
27 32 robfinch
        bool quit;
28
        clsThor cpu2;
29
        clsPIC pic1;
30
        clsUart uart1;
31
        clsKeyboard keybd;
32 30 robfinch
 
33
        clsSystem();
34
        void Reset();
35
        unsigned __int64 Read(unsigned int ad, int sr=0);
36
        unsigned __int64 ReadByte(unsigned int ad);
37 32 robfinch
        unsigned __int64 ReadChar(unsigned int ad);
38
        unsigned __int64 ReadHalf(unsigned int ad);
39 30 robfinch
        int Write(unsigned int ad, unsigned __int64 dat, unsigned int mask, int cr=0);
40
        int random();
41 32 robfinch
        void Run();
42
        void Step();
43 30 robfinch
};

powered by: WebSVN 2.1.0

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