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

Subversion Repositories thor

[/] [thor/] [trunk/] [software/] [emuThor/] [source/] [clsDevice.h] - Blame information for rev 30

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

Line No. Rev Author Line
1 30 robfinch
#pragma once
2
 
3
// Generic system device
4
 
5
class clsDevice
6
{
7
public:
8
        clsDevice(void) {};
9
        void Reset() {};
10
        bool IsSelected(unsigned int ad) { return false; };
11
        unsigned int Read(unsigned int ad) { return 0xDEADDEAD; };
12
        int Write(unsigned int ad, unsigned int dat, unsigned int mask) {};
13
        // Read the device and optionally set an address reservation.
14
        unsigned int Read(unsigned int ad, int sr) { return 0xDEADDEAD; };
15
        // Write the device and optionally clear an address reservation.
16
        int Write(unsigned int ad, unsigned int dat, unsigned int mask, int cr) {};
17
        void Step(void) {};
18
};

powered by: WebSVN 2.1.0

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