Skip to content

Commit 65c44bb

Browse files
author
Jeffrey Clark
committed
fork daphne to hypseus
1 parent 6f0172e commit 65c44bb

File tree

189 files changed

+980
-654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+980
-654
lines changed

COPYING

-340
This file was deleted.

LICENSE

+621
Large diffs are not rendered by default.

README.md

+53-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1-
# Daphne Fork: the First Ever Multiple Arcade Laserdisc Emulator
1+
# Hypseus
22

3-
[Daphne] is a program that "lets one play the original versions of many
4-
laserdisc arcade games on one's PC".
3+
Hypseus is a fork of [Matt Ownby's][CUS] [Daphne]. A program that "lets one play
4+
the original versions of many laserdisc arcade games on one's PC."
5+
6+
Some features that differ from the original:
7+
8+
* Updated MPEG2 decoder
9+
* Working MPEG2 x86_64 hw accel (SSE2)
10+
* SDL2 support
11+
* [cmake] build tool
12+
* More bugs!
13+
14+
**WIP!!! Overlays have not been implemented with SDL2 yet!**
515

616
## Compile
717

8-
In addition to a working [gcc] toolchain, [cmake] and [autotools], you will need
9-
(at minimum): [zlib], [GLEW], [SDL2], [vorbis] and [ogg].
18+
_Currently there is no documentation for the new build process. Pull requests
19+
gladly accepted._
20+
21+
Minimum software requirements: [gcc], [cmake], [autotools], [zlib], [SDL2],
22+
[vorbis] and [ogg].
1023

1124
mkdir build
1225
cd build
@@ -15,18 +28,45 @@ In addition to a working [gcc] toolchain, [cmake] and [autotools], you will need
1528

1629
## Support
1730

18-
This is software is for educational purposes only. You may submit
19-
[issues] or [pull requests] to the [Github page].
31+
This software intended for educational purposes only. Please submit [issues] or
32+
[pull requests] directly to the [project].
2033

2134
**DO NOT submit issues or request support from the official Daphne forums!**
2235

23-
## About
36+
## History
37+
38+
Open development by the original author, [Matt Ownby][CUS], ceased years ago.
2439

25-
Open development by the original author, [Matt Ownby][CUS], was halted years ago.
2640
My intention for creating this public repository was to clean up the build
27-
process, and publish to Github to foster collaborative development.
41+
process, fix bugs, learn, upgrade, and publish to foster collaborative
42+
development. The name was changed to _Hypseus_ so the original authors of
43+
[Daphne] would not be burdened with requests for support.
44+
45+
A big thanks goes out to [Matt Ownby][CUS] and the many other developers who
46+
made their work available for me to learn from. Without them this project
47+
would not be possible.
48+
49+
## License
50+
51+
**Hypseus**, Multiple Arcade Laserdic Emulator
52+
Copyright (C) 2016 [Jeffrey Clark][JAC]
53+
54+
**Daphne**, the First Ever Multiple Arcade Laserdisc Emulator
55+
Copyright (C) 1999-2013 [Matt Ownby][CUS]
56+
57+
[![GNU General Public License version 3](http://www.gnu.org/graphics/gplv3-127x51.png)][GNU General Public License]
58+
59+
This program is free software: you can redistribute it and/or modify
60+
it under the terms of the [GNU General Public License] as published by
61+
the Free Software Foundation, either version 3 of the License, or
62+
(at your option) any later version.
63+
64+
This program is distributed in the hope that it will be useful,
65+
but WITHOUT ANY WARRANTY; without even the implied warranty of
66+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
67+
[GNU General Public License] for more details.
2868

29-
[Github page]: https://github.com/zaplabs/daphne
69+
[project]: https://github.com/zaplabs/daphne
3070
[issues]: https://github.com/zaplabs/daphne/issues
3171
[pull requests]: https://github.com/zaplabs/daphne/pulls
3272
[Daphne]: http://www.daphne-emu.com
@@ -43,3 +83,5 @@ process, and publish to Github to foster collaborative development.
4383
[vorbis]: https://en.wikipedia.org/wiki/Vorbis
4484
[cmake]: https://cmake.org
4585
[autotools]: https://en.wikipedia.org/wiki/GNU_Build_System
86+
[GNU General Public License]: http://www.gnu.org/licenses/gpl-3.0.en.html
87+
[JAC]: https://github.com/h0tw1r3

src/CMakeLists.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 2.9)
22

3-
project(daphne)
3+
project(hypseus)
44

55
option(BENCHMARK "Benchmark" OFF)
66
option(DEBUG "Debug" OFF)
@@ -22,9 +22,9 @@ string(TOUPPER ${CMAKE_SYSTEM_NAME} TARGET_SYSTEM)
2222
string(CONCAT TARGET_SYSTEM TARGET_ ${TARGET_SYSTEM})
2323
string(TOUPPER ${CMAKE_TARGET_ARCHITECTURES} TARGET_ARCH)
2424
string(CONCAT TARGET_ARCH TARGET_ ${TARGET_ARCH})
25-
set(daphne_VERSION_MAJOR 1)
26-
set(daphne_VERSION_MINOR 0)
27-
set(daphne_VERSION_POINT 13)
25+
set(hypseus_VERSION_MAJOR 1)
26+
set(hypseus_VERSION_MINOR 0)
27+
set(hypseus_VERSION_POINT 13)
2828

2929
configure_file(
3030
"${PROJECT_SOURCE_DIR}/config.h.in"
@@ -70,6 +70,6 @@ add_dependencies( ldp-out vldp )
7070
add_dependencies( game vldp )
7171
add_dependencies( sound vldp )
7272

73-
set(EXECUTABLE_NAME "daphne")
74-
add_executable( ${EXECUTABLE_NAME} daphne.cpp globals.h )
73+
set(EXECUTABLE_NAME "hypseus")
74+
add_executable( ${EXECUTABLE_NAME} hypseus.cpp globals.h )
7575
target_link_libraries( ${EXECUTABLE_NAME} io timer sound video cpu game ${SDL2_LIBRARY} ${SDL2_TTF_LIBRARIES} )
File renamed without changes.

src/config.h.in

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#define daphne_VERSION_MAJOR @daphne_VERSION_MAJOR@
2-
#define daphne_VERSION_MINOR @daphne_VERSION_MINOR@
3-
#define daphne_VERSION_POINT @daphne_VERSION_POINT@
4-
#define daphne_VERSION "@daphne_VERSION_MAJOR@.@daphne_VERSION_MINOR@.@daphne_VERSION_POINT@"
1+
#define hypseus_VERSION_MAJOR @hypseus_VERSION_MAJOR@
2+
#define hypseus_VERSION_MINOR @hypseus_VERSION_MINOR@
3+
#define hypseus_VERSION_POINT @hypseus_VERSION_POINT@
4+
#define hypseus_VERSION "@hypseus_VERSION_MAJOR@.@hypseus_VERSION_MINOR@.@hypseus_VERSION_POINT@"
55

66
#define ${TARGET_SYSTEM}
77
#define ${TARGET_ARCH}

src/cpu/cop.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* cop.cpp
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Mark Broadhead
55
*

src/cpu/cop.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* cop.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Mark Broadhead
55
*

src/cpu/copintf.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* copintf.cpp
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Mark Broadhead
55
*

src/cpu/copintf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* copintf.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Mark Broadhead
55
*

src/cpu/cpu-debug.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* cpu-debug.cpp
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Matt Ownby
55
*
@@ -33,8 +33,7 @@
3333
#include <ctype.h>
3434
#include "mamewrap.h"
3535
#include "../io/conout.h"
36-
#include "../daphne.h"
37-
#include "../daphne.h"
36+
#include "../hypseus.h"
3837
#include "../game/game.h"
3938
#include "../ldp-out/ldp.h"
4039
#include "../ldp-in/ldv1000.h"
@@ -58,8 +57,8 @@ void set_debug_cpu(unsigned int which_cpu)
5857
g_which_cpu = which_cpu;
5958
}
6059

61-
// I called this MAME_Debug so that I could test mame cpu cores with daphne (obviously I can't ship mame cpu cores with
62-
// daphne due to licensing issues)
60+
// I called this MAME_Debug so that I could test mame cpu cores with hypseus (obviously I can't ship mame cpu cores with
61+
// hypseus due to licensing issues)
6362
void MAME_Debug(void)
6463
{
6564
// if we are in trace mode OR if we've got our desired breakpoint

src/cpu/cpu-debug.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* cpu-debug.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Matt Ownby
55
*

src/cpu/cpu.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* cpu.cpp
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Matt Ownby
55
*
@@ -33,7 +33,7 @@
3333
#include "cpu.h"
3434
#include <stdio.h> // for stderr
3535
#include <string.h> // for memcpy
36-
#include "../daphne.h"
36+
#include "../hypseus.h"
3737
#include "../game/game.h"
3838
#include "../ldp-out/ldp.h" // to call pre_think
3939
#include "../timer/timer.h"
@@ -74,7 +74,7 @@ unsigned int g_uCPUMsBehind = 0;
7474
//#define CPU_DIAG 1
7575

7676
#ifdef CPU_DIAG
77-
// how many cpu's cpu diag can support (this has nothing to do with how many cpu's daphne can support)
77+
// how many cpu's cpu diag can support (this has nothing to do with how many cpu's hypseus can support)
7878
#define CPU_DIAG_CPUCOUNT 10
7979
static unsigned int cd_cycle_count[CPU_DIAG_CPUCOUNT]; // for speed test
8080
static unsigned int cd_old_time[CPU_DIAG_CPUCOUNT] = { 0 }; // " " "
@@ -933,7 +933,7 @@ void cpu_generate_irq(Uint8 cpu_id, unsigned int which_irq)
933933

934934
static NES_6502* g_6502 = NULL;
935935

936-
// the glue between daphne and the 6502 core we're using
936+
// the glue between hypseus and the 6502 core we're using
937937
void generic_6502_init()
938938
{
939939
g_6502 = new NES_6502();
@@ -1052,7 +1052,7 @@ unsigned int generic_dasm_stub( char *buffer, unsigned pc )
10521052

10531053
// WARNING : this function appears not to de-allocate anything in g_head's linked list,
10541054
// so don't use it unless you have verified that g_head has been de-allocated first.
1055-
// (I think it was added for xbox daphne)
1055+
// (I think it was added for xbox hypseus)
10561056
void reset_cpu_globals()
10571057
{
10581058
g_head = NULL;

src/cpu/cpu.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* cpu.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Matt Ownby
55
*
@@ -25,15 +25,15 @@
2525

2626
#include <SDL.h> // for Uint definitions
2727

28-
enum { CPU_UNDEFINED, CPU_Z80, CPU_X86, CPU_M6809, CPU_M6502, CPU_COP421, CPU_I88, CPU_COUNT }; // cpu's supported by daphne now, leave CPU_COUNT at the end
28+
enum { CPU_UNDEFINED, CPU_Z80, CPU_X86, CPU_M6809, CPU_M6502, CPU_COP421, CPU_I88, CPU_COUNT }; // cpu's supported by hypseus now, leave CPU_COUNT at the end
2929

3030
#define CPU_MEM_SIZE 0x100000 // 1 meg for I86
3131
#define MAX_CONTEXT_SIZE 100 /* max # of bytes that a cpu context can have */
3232
#define MAX_IRQS 4 /* how many IRQs we will support per CPU */
3333

3434
struct cpudef;
3535

36-
// structure that defines parameters for each cpu daphne uses
36+
// structure that defines parameters for each cpu hypseus uses
3737
struct cpudef
3838
{
3939
// these may all be modified externally
@@ -80,7 +80,7 @@ struct cpudef
8080
};
8181

8282
void add_cpu(struct cpudef *); // add a new cpu
83-
void del_all_cpus(); // delete all cpus that have been added (for shutting down daphne)
83+
void del_all_cpus(); // delete all cpus that have been added (for shutting down hypseus)
8484
void cpu_init(); // initialize one cpu
8585
void cpu_shutdown(); // shutdown all cpus
8686
void cpu_execute();

src/cpu/generic_z80.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// UPDATE : I don't think the old z80 core works anymore, it hasn't been maintained and some new functions (get elapsed cycles) aren't available
55
#define USE_M80 1
66

7-
#include "../daphne.h"
7+
#include "../hypseus.h"
88
#ifdef USE_M80
99
#include "../cpu/m80.h"
1010
#define Z80_GET_AF m80_get_reg(M80_AF)

src/cpu/m80.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* m80.cpp
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Matt Ownby
55
*

src/cpu/m80.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* m80.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001,2003 Matt Ownby
55
*
@@ -56,7 +56,7 @@ typedef enum
5656

5757
// These definitions mirror those found in mamewrap.h
5858
// But I don't want to #include mamewrap.h in this file because I don't
59-
// want all the daphne z80 games to depend on mamewrap.h
59+
// want all the hypseus z80 games to depend on mamewrap.h
6060
#define CLEAR_LINE 0
6161
#define ASSERT_LINE 1
6262

src/cpu/m80_inline.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* m80.cpp
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Matt Ownby
55
*

src/cpu/m80_internal.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* m80_internal.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001,2003 Matt Ownby
55
*
@@ -32,7 +32,7 @@
3232
// No actual SDL functions are used, so you can redefine your own variables
3333
// if you choose.
3434

35-
/* if we are integrating with daphne, define this */
35+
/* if we are integrating with hypseus, define this */
3636
#define INTEGRATE 1
3737

3838
#ifdef INTEGRATE

src/cpu/m80_internal_inline.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* m80_internal.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001,2003 Matt Ownby
55
*
@@ -32,7 +32,7 @@
3232
// No actual SDL functions are used, so you can redefine your own variables
3333
// if you choose.
3434

35-
/* if we are integrating with daphne, define this */
35+
/* if we are integrating with hypseus, define this */
3636
#define INTEGRATE 1
3737

3838
#ifdef INTEGRATE

src/cpu/m80tables.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* m80tables.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001 Matt Ownby
55
*

src/cpu/nes6502.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*/
3636

3737
/*
38-
** changes for daphne:
38+
** changes for hypseus:
3939
**
4040
** commented out the stuff in the memory read/write
4141
** functions marked as TODO: following cases are N2A03-specific

src/cpu/nes_6502.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
** Any permitted reproduction of these routines, in whole or in part,
1818
** must bear this legend.
1919
*/
20-
// modified for daphne by Mark Broadhead
20+
// modified for hypseus by Mark Broadhead
2121

2222
#include "config.h"
2323

src/game/astron.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* astron.cpp
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001-2005 Mark Broadhead
55
*

src/game/astron.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* astron.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001-2005 Mark Broadhead
55
*

src/game/badlands.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* badlands.cpp
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001-2005 Mark Broadhead
55
*

src/game/badlands.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* badlands.h
2+
* ____ DAPHNE COPYRIGHT NOTICE ____
33
*
44
* Copyright (C) 2001-2005 Mark Broadhead
55
*

0 commit comments

Comments
 (0)