mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Resolves undefined behaviour from uninitialised limited-range values.
This commit is contained in:
parent
2a320fdf56
commit
eea6858121
@ -16,9 +16,9 @@ namespace Static {
|
||||
namespace Acorn {
|
||||
|
||||
struct Target: public ::Analyser::Static::Target {
|
||||
bool has_adfs;
|
||||
bool has_dfs;
|
||||
bool should_shift_restart;
|
||||
bool has_adfs = false;
|
||||
bool has_dfs = false;
|
||||
bool should_shift_restart = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ struct Target: public ::Analyser::Static::Target {
|
||||
CPC6128
|
||||
};
|
||||
|
||||
Model model;
|
||||
Model model = Model::CPC464;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -32,8 +32,8 @@ struct Target: public ::Analyser::Static::Target {
|
||||
};
|
||||
|
||||
// TODO: shouldn't these be properties of the cartridge?
|
||||
PagingModel paging_model;
|
||||
bool uses_superchip;
|
||||
PagingModel paging_model = PagingModel::None;
|
||||
bool uses_superchip = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,8 +22,8 @@ struct Target: public ::Analyser::Static::Target {
|
||||
ThirtyTwoKB
|
||||
};
|
||||
|
||||
MemoryModel memory_model;
|
||||
bool has_c1540;
|
||||
MemoryModel memory_model = MemoryModel::Unexpanded;
|
||||
bool has_c1540 = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -14,8 +14,8 @@ namespace Static {
|
||||
namespace Oric {
|
||||
|
||||
struct Target: public ::Analyser::Static::Target {
|
||||
bool use_atmos_rom;
|
||||
bool has_microdisc;
|
||||
bool use_atmos_rom = false;
|
||||
bool has_microdisc = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -22,8 +22,8 @@ struct Target: public ::Analyser::Static::Target {
|
||||
SixtyFourKB
|
||||
};
|
||||
|
||||
MemoryModel memory_model;
|
||||
bool isZX81;
|
||||
MemoryModel memory_model = MemoryModel::Unexpanded;
|
||||
bool isZX81 = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user