1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-19 23:29:05 +00:00

Resolves undefined behaviour from uninitialised limited-range values.

This commit is contained in:
Thomas Harte 2018-03-22 21:58:42 -04:00
parent 2a320fdf56
commit eea6858121
6 changed files with 12 additions and 12 deletions

View File

@ -16,9 +16,9 @@ namespace Static {
namespace Acorn { namespace Acorn {
struct Target: public ::Analyser::Static::Target { struct Target: public ::Analyser::Static::Target {
bool has_adfs; bool has_adfs = false;
bool has_dfs; bool has_dfs = false;
bool should_shift_restart; bool should_shift_restart = false;
}; };
} }

View File

@ -22,7 +22,7 @@ struct Target: public ::Analyser::Static::Target {
CPC6128 CPC6128
}; };
Model model; Model model = Model::CPC464;
}; };
} }

View File

@ -32,8 +32,8 @@ struct Target: public ::Analyser::Static::Target {
}; };
// TODO: shouldn't these be properties of the cartridge? // TODO: shouldn't these be properties of the cartridge?
PagingModel paging_model; PagingModel paging_model = PagingModel::None;
bool uses_superchip; bool uses_superchip = false;
}; };
} }

View File

@ -22,8 +22,8 @@ struct Target: public ::Analyser::Static::Target {
ThirtyTwoKB ThirtyTwoKB
}; };
MemoryModel memory_model; MemoryModel memory_model = MemoryModel::Unexpanded;
bool has_c1540; bool has_c1540 = false;
}; };
} }

View File

@ -14,8 +14,8 @@ namespace Static {
namespace Oric { namespace Oric {
struct Target: public ::Analyser::Static::Target { struct Target: public ::Analyser::Static::Target {
bool use_atmos_rom; bool use_atmos_rom = false;
bool has_microdisc; bool has_microdisc = false;
}; };
} }

View File

@ -22,8 +22,8 @@ struct Target: public ::Analyser::Static::Target {
SixtyFourKB SixtyFourKB
}; };
MemoryModel memory_model; MemoryModel memory_model = MemoryModel::Unexpanded;
bool isZX81; bool isZX81 = false;
}; };
} }