bsnes/higan/sfc/chip/armdsp/registers.hpp

18 lines
318 B
C++
Executable File

struct Bridge {
struct Buffer {
bool ready;
uint8 data;
};
Buffer cputoarm;
Buffer armtocpu;
uint32 timer;
uint32 timerlatch;
bool reset;
bool ready;
bool signal;
uint8 status() const {
return (ready << 7) | (cputoarm.ready << 3) | (signal << 2) | (armtocpu.ready << 0);
}
} bridge;