mirror of https://github.com/Treeki/WindEmu.git
30 lines
674 B
C++
30 lines
674 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
|
|
class Emu;
|
|
|
|
class Etna {
|
|
uint8_t prom[0x80] = {};
|
|
uint16_t promReadAddress = 0, promReadValue = 0;
|
|
bool promReadActive = false;
|
|
int promAddressBitsReceived = 0;
|
|
|
|
uint8_t pendingInterrupts = 0, interruptMask = 0;
|
|
uint8_t wake1 = 0, wake2 = 0;
|
|
|
|
Emu *owner;
|
|
|
|
public:
|
|
Etna(Emu *owner);
|
|
|
|
uint32_t readReg8(uint32_t reg);
|
|
uint32_t readReg32(uint32_t reg);
|
|
void writeReg8(uint32_t reg, uint8_t value);
|
|
void writeReg32(uint32_t reg, uint32_t value);
|
|
|
|
// PROM
|
|
void setPromBit0High(); // port B, bit 0
|
|
void setPromBit0Low(); // port B, bit 0
|
|
void setPromBit1High(); // port B, bit 1
|
|
};
|