Machine code restructure, models are now machines instead and the init functions are in the machine files rather than in machine.c (former model.c), also moved the machine stuff into the machine/ subdirectory.
This commit is contained in:
44
src/machine/machine_tandy.c
Normal file
44
src/machine/machine_tandy.c
Normal file
@@ -0,0 +1,44 @@
|
||||
#include "../ibm.h"
|
||||
|
||||
#include "../device.h"
|
||||
#include "../gameport.h"
|
||||
#include "../keyboard_xt.h"
|
||||
#include "../mem.h"
|
||||
#include "../nmi.h"
|
||||
#include "../tandy_eeprom.h"
|
||||
#include "../tandy_rom.h"
|
||||
#include "../sound/snd_pssj.h"
|
||||
#include "../sound/snd_sn76489.h"
|
||||
|
||||
#include "machine_common.h"
|
||||
|
||||
void machine_tandy1k_init(void)
|
||||
{
|
||||
TANDY = 1;
|
||||
|
||||
machine_common_init();
|
||||
mem_add_bios();
|
||||
keyboard_tandy_init();
|
||||
if (romset == ROM_TANDY)
|
||||
device_add(&sn76489_device);
|
||||
else
|
||||
device_add(&ncr8496_device);
|
||||
nmi_init();
|
||||
if (romset != ROM_TANDY)
|
||||
device_add(&tandy_eeprom_device);
|
||||
if (joystick_type != 7)
|
||||
device_add(&gameport_device);
|
||||
}
|
||||
|
||||
|
||||
void machine_tandy1ksl2_init(void)
|
||||
{
|
||||
machine_common_init();
|
||||
mem_add_bios();
|
||||
keyboard_tandy_init();
|
||||
device_add(&pssj_device);
|
||||
nmi_init();
|
||||
device_add(&tandy_rom_device);
|
||||
device_add(&tandy_eeprom_device);
|
||||
if (joystick_type != 7) device_add(&gameport_device);
|
||||
}
|
||||
Reference in New Issue
Block a user