31 lines
723 B
C++
31 lines
723 B
C++
#pragma once
|
|
#include <ircolib/types.hpp>
|
|
|
|
namespace weee::core {
|
|
struct mem;
|
|
struct dsp {
|
|
dsp(mem &);
|
|
ircolib::u16 read16(ircolib::u32);
|
|
void write16(ircolib::u32, ircolib::u16);
|
|
|
|
union {
|
|
struct {
|
|
unsigned res : 1;
|
|
unsigned piint : 1;
|
|
unsigned halt : 1;
|
|
unsigned aidint : 1;
|
|
unsigned aidint_mask : 1;
|
|
unsigned arint : 1;
|
|
unsigned arint_mask : 1;
|
|
unsigned dspint : 1;
|
|
unsigned dspint_mask : 1;
|
|
unsigned int_status : 1;
|
|
unsigned : 1;
|
|
unsigned res2 : 1;
|
|
unsigned : 4;
|
|
};
|
|
ircolib::u16 raw;
|
|
} csr;
|
|
};
|
|
} // namespace weee::core
|