Initial submission of the PCem-Experimental source code.
This commit is contained in:
20
src/olivetti_m24.c
Normal file
20
src/olivetti_m24.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "ibm.h"
|
||||
#include "io.h"
|
||||
#include "olivetti_m24.h"
|
||||
|
||||
uint8_t olivetti_m24_read(uint16_t port, void *priv)
|
||||
{
|
||||
switch (port)
|
||||
{
|
||||
case 0x66:
|
||||
return 0x00;
|
||||
case 0x67:
|
||||
return 0x20 | 0x40 | 0x0C;
|
||||
}
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
void olivetti_m24_init()
|
||||
{
|
||||
io_sethandler(0x0066, 0x0002, olivetti_m24_read, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
Reference in New Issue
Block a user