i need to start caring about carry >.<
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user