small cleaning
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -12,7 +12,7 @@ vgcore.*
|
|||||||
*.dump
|
*.dump
|
||||||
*.data
|
*.data
|
||||||
disasm.txt
|
disasm.txt
|
||||||
log.txt
|
*log.txt
|
||||||
.vs/
|
.vs/
|
||||||
CMakeSettings.json
|
CMakeSettings.json
|
||||||
out/
|
out/
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ void Flash::Load(SaveType saveType, const std::string& path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Flash::CommandExecute() {
|
void Flash::CommandExecute() {
|
||||||
Util::debug("Flash::CommandExecute");
|
Util::trace("Flash::CommandExecute");
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case FlashState::Idle:
|
case FlashState::Idle:
|
||||||
break;
|
break;
|
||||||
@@ -176,7 +176,7 @@ template <> u8 Flash::Read<u8>(u32 index) const {
|
|||||||
case FlashState::Read: {
|
case FlashState::Read: {
|
||||||
if(saveData.is_mapped()) {
|
if(saveData.is_mapped()) {
|
||||||
u8 value = saveData[index];
|
u8 value = saveData[index];
|
||||||
Util::debug("Flash read byte in state read: index {:08X} = {:02X}", index, value);
|
Util::trace("Flash read byte in state read: index {:08X} = {:02X}", index, value);
|
||||||
return value;
|
return value;
|
||||||
} else {
|
} else {
|
||||||
Util::panic("Accessing flash when not mapped!");
|
Util::panic("Accessing flash when not mapped!");
|
||||||
@@ -185,7 +185,7 @@ template <> u8 Flash::Read<u8>(u32 index) const {
|
|||||||
case FlashState::Status: {
|
case FlashState::Status: {
|
||||||
u32 offset = (7 - (index % 8)) * 8;
|
u32 offset = (7 - (index % 8)) * 8;
|
||||||
u8 value = (status >> offset) & 0xFF;
|
u8 value = (status >> offset) & 0xFF;
|
||||||
Util::debug("Flash read byte in state status: index {:08X} = {:02X}", index, value);
|
Util::trace("Flash read byte in state status: index {:08X} = {:02X}", index, value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
default: Util::panic("Flash read byte while in unknown state");
|
default: Util::panic("Flash read byte while in unknown state");
|
||||||
|
|||||||
Reference in New Issue
Block a user