mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 01:48:21 -07:00
45 lines
877 B
C
45 lines
877 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <wchar.h>
|
|
#include "../86box.h"
|
|
#include "../nmi.h"
|
|
#include "../pit.h"
|
|
#include "../mem.h"
|
|
#include "../device.h"
|
|
#include "../floppy/fdd.h"
|
|
#include "../floppy/fdc.h"
|
|
#include "../game/gameport.h"
|
|
#include "../keyboard.h"
|
|
#include "machine.h"
|
|
|
|
|
|
void
|
|
machine_pc_init(const machine_t *model)
|
|
{
|
|
machine_common_init(model);
|
|
|
|
pit_set_out_func(&pit, 1, pit_refresh_timer_xt);
|
|
|
|
device_add(&keyboard_pc_device);
|
|
device_add(&fdc_xt_device);
|
|
nmi_init();
|
|
if (joystick_type != 7)
|
|
device_add(&gameport_device);
|
|
}
|
|
|
|
|
|
void
|
|
machine_xt_init(const machine_t *model)
|
|
{
|
|
machine_common_init(model);
|
|
|
|
pit_set_out_func(&pit, 1, pit_refresh_timer_xt);
|
|
|
|
device_add(&keyboard_xt_device);
|
|
device_add(&fdc_xt_device);
|
|
nmi_init();
|
|
if (joystick_type != 7)
|
|
device_add(&gameport_device);
|
|
}
|