2015-11-30 14:49:56 +00:00
|
|
|
#ifndef __PORTS_H__
|
|
|
|
#define __PORTS_H__
|
|
|
|
|
|
|
|
template<class P>
|
|
|
|
class PortDevice {
|
|
|
|
public:
|
2018-08-13 13:41:23 +00:00
|
|
|
virtual void out(uint16_t p, uint8_t v, P *cpu) =0;
|
|
|
|
virtual uint8_t in(uint16_t p, P *cpu) =0;
|
2015-11-30 14:49:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|