mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 01:48:21 -07:00
FDI stream images are now also handled by the 86F handler; Both floppy drives' motors now spin separately; Added Plantronics ColorPlus emulation per patch from PCem forum; Applied all mainline PCem commits; Fixed several bugs.
31 lines
580 B
C
31 lines
580 B
C
/* Copyright holders: Tenshi
|
|
see COPYING for more details
|
|
*/
|
|
/*
|
|
0xE1 and 0xE2 Memory Registers
|
|
Used by just about any emulated machine
|
|
*/
|
|
|
|
#include "ibm.h"
|
|
|
|
#include "io.h"
|
|
#include "memregs.h"
|
|
|
|
static uint8_t mem_regs[2] = {0xFF, 0xFF};
|
|
|
|
void memregs_write(uint16_t port, uint8_t val, void *priv)
|
|
{
|
|
mem_regs[port - 0xE1] = val;
|
|
}
|
|
|
|
uint8_t memregs_read(uint16_t port, void *priv)
|
|
{
|
|
return mem_regs[port - 0xE1];
|
|
}
|
|
|
|
void memregs_init()
|
|
{
|
|
pclog("Memory Registers Init\n");
|
|
|
|
io_sethandler(0x00e1, 0x0002, memregs_read, NULL, NULL, memregs_write, NULL, NULL, NULL);
|
|
} |