diff --git a/.gitignore b/.gitignore index 0d58c4e..1fe46e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ build/ +debug/ +.vscode/ nba.* build.sh \ No newline at end of file diff --git a/src/nba/src/hw/dma/dma.hpp b/src/nba/src/hw/dma/dma.hpp index c248b4a..5dff7ab 100644 --- a/src/nba/src/hw/dma/dma.hpp +++ b/src/nba/src/hw/dma/dma.hpp @@ -36,8 +36,8 @@ struct DMA { auto Run() -> int; auto Read (int chan_id, int offset) -> u8; void Write(int chan_id, int offset, u8 value); - bool IsRunning() { return runnable_set.any(); } - auto GetOpenBusValue() -> u32 { return latch; } + inline bool IsRunning() { return runnable_set.any(); } + inline auto GetOpenBusValue() -> u32 { return latch; } void LoadState(SaveState const& state); void CopyState(SaveState& state); diff --git a/src/wasm/module.cpp b/src/wasm/module.cpp index 60e3c14..dfd71d1 100644 --- a/src/wasm/module.cpp +++ b/src/wasm/module.cpp @@ -193,7 +193,7 @@ void replay() } else if( backup_value[0] == 2 ) { - backup = std::make_unique( fs::path{"/"}, backup_value[1] > 64*1024 ? nba::FLASH::Size::SIZE_128K : nba::FLASH::Size::SIZE_128K ); + backup = std::make_unique( fs::path{"/"}, backup_value[1] > 512*1024 ? nba::FLASH::Size::SIZE_128K : nba::FLASH::Size::SIZE_64K ); } else if( backup_value[0] == 3 ) {