More cleanups (mostly in cpu) and consting the CPU opcode tables.

Removed the crcspeed/ folder entirely - was no longer used.
This commit is contained in:
waltje
2018-05-06 16:18:38 -04:00
parent 12bbba12e6
commit 1d6dcdee7b
14 changed files with 432 additions and 1036 deletions

View File

@@ -475,7 +475,7 @@ endif
# Final versions of the toolchain flags.
CFLAGS := $(WX_FLAGS) $(OPTS) $(DFLAGS) $(COPTIM) $(AOPTIM) \
$(AFLAGS) -fomit-frame-pointer -mstackrealign \
-Wall -Wundef #-Wunused-parameter -Wmissing-declarations
-Wall -Wundef #-Wshadow #-Wunused-parameter -Wmissing-declarations
CXXFLAGS := $(WX_FLAGS) $(OPTS) $(DFLAGS) $(COPTIM) $(AOPTIM) \
$(AFLAGS) -fno-strict-aliasing -fvisibility=hidden \

View File

@@ -8,7 +8,7 @@
*
* Platform main support module for Windows.
*
* Version: @(#)win.c 1.0.16 2018/05/03
* Version: @(#)win.c 1.0.17 2018/05/05
*
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com>
@@ -301,7 +301,7 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpszArg, int nCmdShow)
argc = ProcessCommandLine(&argw);
/* Pre-initialize the system, this loads the config file. */
if (! pc_init(argc, argw)) {
if (! pc_setup(argc, argw)) {
/* Detach from console. */
plat_console(0);
return(1);

View File

@@ -8,7 +8,7 @@
*
* Implement the user Interface module.
*
* Version: @(#)win_ui.c 1.0.18 2018/05/03
* Version: @(#)win_ui.c 1.0.19 2018/05/05
*
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
* Miran Grca, <mgrca8@gmail.com>
@@ -535,7 +535,7 @@ ui_init(int nCmdShow)
#endif
if (settings_only) {
if (! pc_init_modules()) {
if (! pc_init()) {
/* Dang, no ROMs found at all! */
ui_msgbox(MBX_ERROR, (wchar_t *)IDS_2056);
return(6);
@@ -635,7 +635,7 @@ ui_init(int nCmdShow)
NULL);
/* That looks good, now continue setting up the machine. */
switch (pc_init_modules()) {
switch (pc_init()) {
case -1: /* General failure during init, give up. */
return(6);