32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
#include "../guest-captures.h"
|
|
|
|
using namespace BasicDiskTests;
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
try {
|
|
require(argc == 5, "Usage: profiles ROMs CPU rgb-hd|sdc disk");
|
|
const auto profile = std::string(argv[3]) == "sdc" ? Profile::sdc : Profile::rgbHD;
|
|
const auto cpu = std::string(argv[2]) == "6809" ? Processor::MC6809 : Processor::HD6309;
|
|
Session guest(argv[1], argv[4], cpu, profile);
|
|
guest.type("LOADM\"RECORDER\":EXEC\r");
|
|
guest.until("SELECT AUDIO");
|
|
guest.frames(15);
|
|
guest.type("1");
|
|
guest.frames(500); // Finish painting both GIME pages before pressing Space.
|
|
guest.type(" ");
|
|
guest.frames(120);
|
|
require(guest.machine.debuggerMemoryRange(0x50000, 1, true).bytes[0] == 7,
|
|
"Keyboard pilot did not record the starting sector in bank $28");
|
|
guest.type("S");
|
|
guest.frames(120); // Return to hardware text before querying the guest screen.
|
|
guest.until("SAVED LOG01.TXT");
|
|
guest.verifyReturn();
|
|
saveVolume(guest, "returned.dsk");
|
|
} catch (const std::exception& error) {
|
|
std::cerr << error.what() << '\n';
|
|
return 1;
|
|
}
|
|
}
|