zexall: split standalone binary into zexall/interface and include source code (nw)

This commit is contained in:
hap 2017-10-23 17:19:49 +02:00
parent ade358e294
commit 97d52bc338
5 changed files with 1570 additions and 20 deletions

View File

@ -7,6 +7,7 @@ function standalone()
MAME_DIR .. "src/zexall/main.cpp",
MAME_DIR .. "src/zexall/zexall.cpp",
MAME_DIR .. "src/zexall/zexall.h",
MAME_DIR .. "src/zexall/interface.h",
}
end

15
src/zexall/interface.h Normal file
View File

@ -0,0 +1,15 @@
// license:GPL-2.0
// copyright-holders:Kevin Horton
// interface binary
// source code: This was written directly in machine code. In other words: the hex data is the source.
static const uint8_t interface_binary[0x51] =
{
0xc3, 0x33, 0x00, 0x00, 0x00, 0x3e, 0x02, 0xb9, 0x20, 0x06, 0x7b, 0xcd, 0x20, 0x00, 0x18, 0x22, // .3...>.. .{. .."
0x3e, 0x09, 0xb9, 0x20, 0x1d, 0x1a, 0xfe, 0x24, 0x28, 0x18, 0xcd, 0x20, 0x00, 0x13, 0x18, 0xf5, // >.. ...$(.. ....
0x32, 0xff, 0xff, 0x21, 0xfe, 0xff, 0x3a, 0xfd, 0xff, 0x4f, 0x34, 0x3a, 0xfd, 0xff, 0xb9, 0x28, // 2..!..:..O4:...(
0xf9, 0xc9, 0xc9, 0xf3, 0x3e, 0x00, 0x32, 0x21, 0x01, 0xd3, 0x01, 0x3a, 0x03, 0x00, 0xcb, 0x27, // ....>.2!...:...'
0x4f, 0x06, 0x00, 0x21, 0x3a, 0x01, 0x09, 0x22, 0x20, 0x01, 0x31, 0xc0, 0x00, 0xcd, 0x17, 0x01, // O..!:.." .1.....
0x76, // v
};

View File

@ -10,8 +10,8 @@
#include "emu.h"
#include "cpu/z80/z80.h"
#include "zexall.h"
#include "interface.h"
class zexall_state : public driver_device
{
@ -57,7 +57,9 @@ void zexall_state::machine_reset()
terminate_string = "";
// program is self-modifying, so need to refresh it on each run
memcpy(m_main_ram, zexall_program, 0x228a);
memset(m_main_ram, 0xff, 0x10000);
memcpy(m_main_ram, interface_binary, 0x51);
memcpy(m_main_ram + 0x0100, zexall_binary, 0x2189);
}

View File

@ -1,24 +1,11 @@
// license:GPL-2.0
// copyright-holders:Frank Cringle,Blargg,Kevin Horton
// copyright-holders:Frank Cringle
static const uint8_t zexall_program[8841] =
// zexall binary
// source code: see zexall.z80
static const uint8_t zexall_binary[0x2189] =
{
0xc3, 0x33, 0x00, 0x00, 0x00, 0x3e, 0x02, 0xb9, 0x20, 0x06, 0x7b, 0xcd, 0x20, 0x00, 0x18, 0x22, // .3...>.. .{. .."
0x3e, 0x09, 0xb9, 0x20, 0x1d, 0x1a, 0xfe, 0x24, 0x28, 0x18, 0xcd, 0x20, 0x00, 0x13, 0x18, 0xf5, // >.. ...$(.. ....
0x32, 0xff, 0xff, 0x21, 0xfe, 0xff, 0x3a, 0xfd, 0xff, 0x4f, 0x34, 0x3a, 0xfd, 0xff, 0xb9, 0x28, // 2..!..:..O4:...(
0xf9, 0xc9, 0xc9, 0xf3, 0x3e, 0x00, 0x32, 0x21, 0x01, 0xd3, 0x01, 0x3a, 0x03, 0x00, 0xcb, 0x27, // ....>.2!...:...'
0x4f, 0x06, 0x00, 0x21, 0x3a, 0x01, 0x09, 0x22, 0x20, 0x01, 0x31, 0xc0, 0x00, 0xcd, 0x17, 0x01, // O..!:.." .1.....
0x76, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // v...............
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, // ................
0xc3, 0x13, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ................
0x00, 0x00, 0x00, 0x2a, 0x06, 0x00, 0xf9, 0x11, 0xda, 0x1d, 0x0e, 0x09, 0xcd, 0xce, 0x1d, 0x21, // ...*...........!
0x3a, 0x01, 0x7e, 0x23, 0xb6, 0xca, 0x2f, 0x01, 0x2b, 0xcd, 0xe2, 0x1a, 0xc3, 0x22, 0x01, 0x11, // :.~#../.+...."..

1545
src/zexall/zexall.z80 Normal file

File diff suppressed because it is too large Load Diff