1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-26 00:30:29 +00:00

Include and fetch a BIOS.

This commit is contained in:
Thomas Harte 2023-11-15 11:32:23 -05:00
parent 7323af0b41
commit af7069ac21
5 changed files with 19 additions and 0 deletions

View File

@ -25,9 +25,18 @@ class ConcreteMachine:
) {
// This is actually a MIPS count; try 3 million.
set_clock_rate(3'000'000);
// Fetch the BIOS. [8088 only, for now]
ROM::Request request = ROM::Request(ROM::Name::PCCompatibleGLaBIOS);
auto roms = rom_fetcher(request);
if(!request.validate(roms)) {
throw ROMMachine::Error::MissingROMs;
}
}
void run_for([[maybe_unused]] const Cycles cycles) override {}
private:
};

View File

@ -567,6 +567,8 @@ Description::Description(Name name) {
case Name::OricMicrodisc: *this = Description(name, "Oric", "the Oric Microdisc ROM", "microdisc.rom", 8*1024, 0xa9664a9cu); break;
case Name::Oric8DOSBoot: *this = Description(name, "Oric", "the 8DOS boot ROM", "8dos.rom", 512, 0x49a74c06u); break;
case Name::PCCompatibleGLaBIOS: *this = Description(name, "PCCompatible", "8088 GLaBIOS 0.2.5", "GLABIOS_0.2.5_8T.ROM", 8 * 1024, 0x9576944cu); break;
// TODO: CRCs below are incomplete, at best.
case Name::MSXGenericBIOS: *this = Description(name, "MSX", "a generix MSX BIOS", "msx.rom", 32*1024, 0x94ee12f3u); break;
case Name::MSXJapaneseBIOS: *this = Description(name, "MSX", "a Japanese MSX BIOS", "msx-japanese.rom", 32*1024, 0xee229390u); break;

View File

@ -132,6 +132,9 @@ enum Name {
OricMicrodisc,
Oric8DOSBoot,
// PCCompatible.
PCCompatibleGLaBIOS,
// Sinclair QL.
SinclairQLJS,

Binary file not shown.

View File

@ -0,0 +1,5 @@
Expected files:
GLABIOS_0.2.5_8T.ROM — the 8088 GlaBIOS ROM.
GlaBIOS is an open-source GPLv3 alternative BIOS for XT clones, available from https://glabios.org/