Cleanup, moving stuff out of ibm.h and such. Moved more configuration variables into main. Minor changes for multiplatform.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Handling of the emulated machines.
|
||||
*
|
||||
* Version: @(#)machine.c 1.0.22 2017/10/30
|
||||
* Version: @(#)machine.c 1.0.23 2017/11/01
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -40,8 +40,6 @@
|
||||
|
||||
int machine;
|
||||
int AMSTRAD, AT, PCI, TANDY;
|
||||
int serial_enabled[SERIAL_MAX] = { 0, 0 };
|
||||
int lpt_enabled = 0, bugger_enabled = 0;
|
||||
int romset;
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Handling of the emulated machines.
|
||||
*
|
||||
* Version: @(#)machine.h 1.0.7 2017/10/12
|
||||
* Version: @(#)machine.h 1.0.8 2017/11/01
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -73,6 +73,8 @@ typedef struct _machine_ {
|
||||
/* Global variables. */
|
||||
extern machine_t machines[];
|
||||
extern int machine;
|
||||
extern int romset;
|
||||
extern int AMSTRAD, TANDY, AT, PCI;
|
||||
|
||||
|
||||
/* Core functions. */
|
||||
|
||||
@@ -275,7 +275,7 @@ static void opti495_write(uint16_t addr, uint8_t val, void *p)
|
||||
optireg=val;
|
||||
break;
|
||||
case 0x24:
|
||||
printf("Writing OPTI reg %02X %02X\n",optireg,val);
|
||||
pclog("OPTI: writing reg %02X %02X\n",optireg,val);
|
||||
if (optireg>=0x20 && optireg<=0x2C)
|
||||
{
|
||||
optiregs[optireg-0x20]=val;
|
||||
|
||||
Reference in New Issue
Block a user