The MDA and all Hercules cards now initialize a parallel port on 0x3BC.

This commit is contained in:
OBattler
2017-11-14 08:51:44 +01:00
parent 8f016a701e
commit 5592ca6d22
5 changed files with 14 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
#include "../86box.h"
#include "../cpu/cpu.h"
#include "../io.h"
#include "../lpt.h"
#include "../pit.h"
#include "../mem.h"
#include "../timer.h"
@@ -405,6 +406,8 @@ void *colorplus_standalone_init(device_t *info)
mem_mapping_add(&colorplus->cga.mapping, 0xb8000, 0x08000, colorplus_read, NULL, NULL, colorplus_write, NULL, NULL, NULL, MEM_MAPPING_EXTERNAL, colorplus);
io_sethandler(0x03d0, 0x0010, colorplus_in, NULL, NULL, colorplus_out, NULL, NULL, colorplus);
lpt3_init(0x3BC);
return colorplus;
}

View File

@@ -25,6 +25,7 @@
#include "../mem.h"
#include "../rom.h"
#include "../io.h"
#include "../lpt.h"
#include "../pit.h"
#include "../timer.h"
#include "../device.h"
@@ -370,6 +371,8 @@ void *hercules_init(device_t *info)
}
cgapal_rebuild();
lpt3_init(0x3BC);
return hercules;
}

View File

@@ -23,6 +23,7 @@
#include <wchar.h>
#include "../86box.h"
#include "../io.h"
#include "../lpt.h"
#include "../pit.h"
#include "../mem.h"
#include "../rom.h"
@@ -708,6 +709,8 @@ void *herculesplus_init(device_t *info)
mdacols[0x80][0][1] = mdacols[0x80][1][1] = 16;
mdacols[0x88][0][1] = mdacols[0x88][1][1] = 16;
lpt3_init(0x3BC);
return herculesplus;
}

View File

@@ -23,6 +23,7 @@
#include <wchar.h>
#include "../86box.h"
#include "../io.h"
#include "../lpt.h"
#include "../pit.h"
#include "../mem.h"
#include "../rom.h"
@@ -1052,7 +1053,7 @@ void *incolor_init(device_t *info)
}
incolor->palette_idx = 0;
lpt3_init(0x3BC);
return incolor;
}

View File

@@ -23,6 +23,7 @@
#include <wchar.h>
#include "../86box.h"
#include "../io.h"
#include "../lpt.h"
#include "../pit.h"
#include "../mem.h"
#include "../rom.h"
@@ -319,6 +320,8 @@ void *mda_init(device_t *info)
}
cgapal_rebuild();
lpt3_init(0x3BC);
return mda;
}