Code ready to obtain data; Doesn't work in No and causes strange errors in DS
This commit is contained in:
@@ -52,6 +52,14 @@ namespace JabyEngine {
|
||||
__declare_io_type(Request, uint8_t,
|
||||
static constexpr auto WantCommandStartIRQ = Bit(5);
|
||||
static constexpr auto WantData = Bit(7);
|
||||
|
||||
void want_data() {
|
||||
this->raw_value = Self::set(Self::WantData);
|
||||
}
|
||||
|
||||
void reset() {
|
||||
this->raw_value = 0;
|
||||
}
|
||||
);
|
||||
|
||||
__declare_io_type(SoundMapCoding, uint8_t,
|
||||
|
@@ -12,6 +12,11 @@ namespace JabyEngine {
|
||||
struct SyncMode0 {
|
||||
static constexpr auto NumberOfWords = BitRange::from_to(0, 15);
|
||||
static constexpr auto CD_OneBlock = Bit(16);
|
||||
|
||||
static constexpr Self for_cd() {
|
||||
// v Should be replaced with a named constant
|
||||
return Self::from(SyncMode0::CD_OneBlock, SyncMode0::NumberOfWords.with(512));
|
||||
}
|
||||
};
|
||||
|
||||
struct SyncMode1 {
|
||||
|
Reference in New Issue
Block a user