Code ready to obtain data; Doesn't work in No and causes strange errors in DS

This commit is contained in:
Jaby
2023-03-26 16:42:45 +02:00
committed by Jaby
parent f4de921f4f
commit 14a2cb70f1
6 changed files with 51 additions and 12 deletions

View File

@@ -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 {