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:
parent
2a320fdf56
commit
eea6858121
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ struct Target: public ::Analyser::Static::Target {
|
|||||||
CPC6128
|
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?
|
// TODO: shouldn't these be properties of the cartridge?
|
||||||
PagingModel paging_model;
|
PagingModel paging_model = PagingModel::None;
|
||||||
bool uses_superchip;
|
bool uses_superchip = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user