24 lines
473 B
C++
24 lines
473 B
C++
#pragma once
|
|
#include <ircolib/types.hpp>
|
|
|
|
namespace weee::core {
|
|
struct mem;
|
|
|
|
struct memory_interface {
|
|
union {
|
|
struct {
|
|
unsigned mem0 : 1;
|
|
unsigned mem1 : 1;
|
|
unsigned mem2 : 1;
|
|
unsigned mem3 : 1;
|
|
unsigned all : 1;
|
|
unsigned : 27;
|
|
};
|
|
ircolib::u32 raw;
|
|
} int_mask;
|
|
|
|
memory_interface(mem &);
|
|
void write16(ircolib::u32, ircolib::u16);
|
|
};
|
|
} // namespace weee::core
|