MonsterCommit(tm) with typo-fixes, void-ness fixes, correct CaPs for directories, etc. No real code changes.

This commit is contained in:
waltje
2017-08-24 01:14:39 -04:00
parent 7cf0e24caa
commit 2ffedb680b
142 changed files with 1229 additions and 991 deletions

View File

@@ -8,7 +8,7 @@
#
# Modified Makefile for Win32 (MinGW32) environment.
#
# Version: @(#)Makefile.mingw 1.0.36 2017/08/21
# Version: @(#)Makefile.mingw 1.0.37 2017/08/23
#
# Authors: Miran Grca, <mgrca8@gmail.com>
# Fred N. van Kempen, <decwiz@yahoo.com>
@@ -20,7 +20,7 @@ PROG = 86Box
endif
# Various compile-time options.
# -DROM_TRACE=0xcd800 traces ROM access from segment C800
# -DROM_TRACE=0xc800 traces ROM access from segment C800
# -DIO_TRACE=0x66 traces I/O on port 0x66
STUFF =
@@ -66,13 +66,13 @@ endif
#########################################################################
# Nothing should need changing from here on.. #
#########################################################################
VPATH = . cpu \
sound \
sound/munt sound/munt/c_interface sound/munt/sha1 \
sound/munt/srchelper \
sound/resid-fp \
video lzf network network/slirp win
PLAT = win/
VPATH = . CPU \
SOUND \
SOUND/MUNT SOUND/MUNT/c_interface SOUND/MUNT/sha1 \
SOUND/MUNT/srchelper \
SOUND/RESID-FP \
VIDEO LZF NETWORK NETWORK/SLIRP WIN
PLAT = WIN/
ifeq ($(X64), y)
CPP = g++.exe -m64
CC = gcc.exe -m64
@@ -325,24 +325,24 @@ clean:
86Box.res: 86Box.rc
@echo Processing $<
@$(WINDRES) $(RFLAGS) $(EXTRAS) -i win/86Box.rc -o 86Box.res
@$(WINDRES) $(RFLAGS) $(EXTRAS) -i WIN/86Box.rc -o 86Box.res
pcap_if.res: pcap_if.rc
@echo Processing $<
@$(WINDRES) $(RFLAGS) -i win/pcap_if.rc -o pcap_if.res
@$(WINDRES) $(RFLAGS) -i WIN/pcap_if.rc -o pcap_if.res
# Module dependencies.
acer386sx.o: ibm.h cpu/cpu.h io.h device.h model.h
acer386sx.o: ibm.h CPU/cpu.h io.h device.h model.h
ali1429.o: ibm.h cpu/cpu.h io.h mem.h device.h model.h
ali1429.o: ibm.h CPU/cpu.h io.h mem.h device.h model.h
amstrad.o: ibm.h cpu/cpu.h io.h device.h model.h keyboard.h lpt.h mouse.h
amstrad.o: ibm.h CPU/cpu.h io.h device.h model.h keyboard.h lpt.h mouse.h
bugger.o: ibm.h io.h bugger.h
cdrom.o: 86box.h cdrom.h ibm.h ide.h piix.h scsi.h timer.h \
win/plat_iodev.h
WIN/plat_iodev.h
cdrom_dosbox.o: cdrom_dosbox.h
@@ -352,21 +352,21 @@ cdrom_ioctl.o: ibm.h cdrom.h cdrom_ioctl.h scsi.h
cdrom_null.o: ibm.h cdrom.h cdrom_ioctl.h
compaq.o: ibm.h cpu/cpu.h mem.h device.h model.h
compaq.o: ibm.h CPU/cpu.h mem.h device.h model.h
config.o: cdrom.h config.h device.h disc.h fdc.h fdd.h ibm.h \
cpu/cpu.h gameport.h ide.h hdd.h model.h mouse.h \
network/network.h nvr.h scsi.h win/plat_joystick.h \
win/plat_midi.h sound/snd_dbopl.h sound/snd_mpu401.h \
sound/snd_opl.h sound/sound.h video/video.h win/win.h \
win/resource.h win/win_language.h
CPU/cpu.h gameport.h ide.h hdd.h model.h mouse.h \
NETWORK/network.h nvr.h scsi.h WIN/plat_joystick.h \
WIN/plat_midi.h SOUND/snd_dbopl.h SOUND/snd_mpu401.h \
SOUND/snd_opl.h SOUND/sound.h VIDEO/video.h WIN/win.h \
WIN/resource.h WIN/win_language.h
device.o: ibm.h cpu/cpu.h config.h device.h model.h sound/sound.h
device.o: ibm.h CPU/cpu.h config.h device.h model.h SOUND/sound.h
disc.o: ibm.h config.h disc.h disc_fdi.h disc_img.h disc_86f.h \
disc_td0.h disc_imd.h fdc.h fdd.h timer.h
disc_86f.o: lzf/lzf.h config.h dma.h disc.h disc_86f.h disc_random.h \
disc_86f.o: LZF/lzf.h config.h dma.h disc.h disc_86f.h disc_random.h \
fdc.h fdd.h ibm.h
disc_fdi.o: ibm.h disc.h disc_img.h disc_fdi.h fdc.h fdd.h fdi2raw.h \
@@ -377,7 +377,7 @@ disc_random.o: disc_random.h
disc_td0.o: ibm.h disc.h disc_td0.h fdc.h fdd.h
dma.o: ibm.h cpu/x86.h mem.h io.h dma.h
dma.o: ibm.h CPU/x86.h mem.h io.h dma.h
esdi_at.o: ibm.h device.h hdd_image.h io.h mem.h pic.h rom.h timer.h \
esdi_at.h
@@ -395,11 +395,11 @@ fdd.o: ibm.h disc.h fdc.h fdd.h
fdi2raw.o: fdi2raw.h ibm.h
gameport.o: ibm.h cpu/cpu.h device.h io.h timer.h gameport.h \
gameport.o: ibm.h CPU/cpu.h device.h io.h timer.h gameport.h \
joystick_ch_flightstick_pro.h joystick_standard.h \
joystick_sw_pad.h joystick_tm_fcs.h plat_joystick.h
hdd.o: ibm.h cpu/cpu.h device.h hdd.h model.h esdi_at.h \
hdd.o: ibm.h CPU/cpu.h device.h hdd.h model.h esdi_at.h \
hdd_esdi.h mfm_at.h mfm_xebec.h xtide.h
hdd_image.o: ibm.h ide.h hdd_image.h
@@ -407,29 +407,29 @@ hdd_image.o: ibm.h ide.h hdd_image.h
hdd_esdi.o: ibm.h device.h dma.h hdd_image.h io.h mca.h mem.h \
pic.h rom.h timer.h hdd_esdi.h
headland.o: ibm.h cpu/cpu.h io.h mem.h device.h model.h
headland.o: ibm.h CPU/cpu.h io.h mem.h device.h model.h
i430fx.o: ibm.h cpu/cpu.h mem.h pci.h device.h model.h
i430fx.o: ibm.h CPU/cpu.h mem.h pci.h device.h model.h
i430hx.o: ibm.h cpu/cpu.h io.h mem.h pci.h device.h model.h
i430hx.o: ibm.h CPU/cpu.h io.h mem.h pci.h device.h model.h
i430lx.o: ibm.h cpu/cpu.h mem.h pci.h device.h model.h
i430lx.o: ibm.h CPU/cpu.h mem.h pci.h device.h model.h
i430nx.o: ibm.h cpu/cpu.h mem.h pci.h device.h model.h
i430nx.o: ibm.h CPU/cpu.h mem.h pci.h device.h model.h
i430vx.o: ibm.h cpu/cpu.h io.h mem.h pci.h device.h model.h
i430vx.o: ibm.h CPU/cpu.h io.h mem.h pci.h device.h model.h
i440fx.o: ibm.h cpu/cpu.h io.h mem.h pci.h device.h model.h
i440fx.o: ibm.h CPU/cpu.h io.h mem.h pci.h device.h model.h
ide.o: 86box.h cdrom.h hdd_image.h ibm.h io.h pic.h timer.h cdrom.h scsi.h ide.h
intel.o: ibm.h cpu/cpu.h io.h mem.h pit.h timer.h intel.h
intel.o: ibm.h CPU/cpu.h io.h mem.h pit.h timer.h intel.h
intel_flash.o: ibm.h cpu/cpu.h device.h mem.h model.h rom.h
intel_flash.o: ibm.h CPU/cpu.h device.h mem.h model.h rom.h
io.o: ibm.h io.h
jim.o: ibm.h cpu/cpu.h io.h device.h model.h
jim.o: ibm.h CPU/cpu.h io.h device.h model.h
joystick_ch_flightstick_pro.o: ibm.h device.h timer.h gameport.h \
joystick_standard.h plat_joystick.h
@@ -445,23 +445,23 @@ joystick_tm_fcs.o: ibm.h device.h timer.h gameport.h \
keyboard.o: ibm.h plat_keyboard.h keyboard.h
keyboard_amstrad.o: ibm.h io.h mem.h pic.h pit.h timer.h sound/sound.h \
sound/snd_speaker.h keyboard.h keyboard_amstrad.h
keyboard_amstrad.o: ibm.h io.h mem.h pic.h pit.h timer.h SOUND/sound.h \
SOUND/snd_speaker.h keyboard.h keyboard_amstrad.h
keyboard_at.o: ibm.h io.h mem.h pic.h pit.h timer.h disc.h fdc.h \
sound/sound.h sound/snd_speaker.h keyboard.h keyboard_at.h
SOUND/sound.h SOUND/snd_speaker.h keyboard.h keyboard_at.h
keyboard_olim24.o: ibm.h io.h mem.h pic.h pit.h timer.h mouse.h \
sound/sound.h sound/snd_speaker.h keyboard.h keyboard_olim24.h
SOUND/sound.h SOUND/snd_speaker.h keyboard.h keyboard_olim24.h
keyboard_pcjr.o: ibm.h io.h mem.h nmi.h pic.h pit.h timer.h \
device.h sound/sound.h sound/snd_speaker.h \
sound/snd_sn76489.h keyboard.h keyboard_pcjr.h
device.h SOUND/sound.h SOUND/snd_speaker.h \
SOUND/snd_sn76489.h keyboard.h keyboard_pcjr.h
keyboard_xt.o: ibm.h io.h mem.h pic.h pit.h timer.h device.h tandy_eeprom.h \
sound/sound.h sound/snd_speaker.h keyboard.h keyboard_xt.h
SOUND/sound.h SOUND/snd_speaker.h keyboard.h keyboard_xt.h
laserxt.o: ibm.h cpu/cpu.h io.h mem.h device.h model.h
laserxt.o: ibm.h CPU/cpu.h io.h mem.h device.h model.h
lpt.o: ibm.h io.h lpt.h
@@ -469,8 +469,8 @@ mca.o: ibm.h io.h mem.h mca.h
mcr.o: ibm.h
mem.o: ibm.h cpu/cpu.h cpu/x86_ops.h cpu/x86.h config.h \
io.h mem.h rom.h cpu/codegen.h video/video.h
mem.o: ibm.h CPU/cpu.h CPU/x86_ops.h CPU/x86.h config.h \
io.h mem.h rom.h CPU/codegen.h VIDEO/video.h
memregs.o: ibm.h io.h memregs.h
@@ -478,19 +478,19 @@ mfm_at.o: ibm.h device.h hdd_image.h io.h pic.h timer.h mfm_at.h
mfm_xebec.o: ibm.h device.h dma.h hdd_image.h io.h mem.h pic.h rom.h timer.h mfm_xebec.h
model.o: ibm.h io.h mem.h rom.h device.h model.h cpu/cpu.h \
model.o: ibm.h io.h mem.h rom.h device.h model.h CPU/cpu.h \
mouse.h cdrom.h disc.h dma.h fdc.h \
fdc37c665.h fdc37c669.h fdc37c932fr.h \
gameport.h ide.h intel.h intel_flash.h \
keyboard_amstrad.h keyboard_at.h keyboard_olim24.h \
keyboard_pcjr.h keyboard_xt.h lpt.h mem.h memregs.h \
nmi.h nvr.h pc87306.h pci.h pic.h piix.h pit.h ps2_mca.h \
serial.h sis85c471.h sio.h sound/snd_ps1.h sound/snd_pssj.h \
sound/snd_sn76489.h tandy_eeprom.h tandy_rom.h \
video/vid_pcjr.h video/vid_tandy.h w83877f.h wd76c10.h \
serial.h sis85c471.h sio.h SOUND/snd_ps1.h SOUND/snd_pssj.h \
SOUND/snd_sn76489.h tandy_eeprom.h tandy_rom.h \
VIDEO/vid_pcjr.h VIDEO/vid_tandy.h w83877f.h wd76c10.h \
xtide.h bugger.h
mouse.o: ibm.h cpu/cpu.h device.h model.h mouse.h keyboard_olim24.h
mouse.o: ibm.h CPU/cpu.h device.h model.h mouse.h keyboard_olim24.h
mouse_bus.o: ibm.h io.h pic.h timer.h mouse.h
@@ -498,28 +498,28 @@ mouse_ps2.o: ibm.h keyboard_at.h mouse.h plat_mouse.h
mouse_serial.o: ibm.h timer.h serial.h mouse.h
neat.o: ibm.h cpu/cpu.h io.h device.h model.h
neat.o: ibm.h CPU/cpu.h io.h device.h model.h
nmi.o: ibm.h io.h nmi.h
nvr.o: ibm.h cpu/cpu.h device.h io.h mem.h model.h nvr.h \
nvr.o: ibm.h CPU/cpu.h device.h io.h mem.h model.h nvr.h \
pic.h rom.h timer.h rtc.h
olivetti_m24.o: ibm.h cpu/cpu.h io.h device.h model.h
olivetti_m24.o: ibm.h CPU/cpu.h io.h device.h model.h
opti495.o: ibm.h cpu/cpu.h io.h mem.h device.h model.h
opti495.o: ibm.h CPU/cpu.h io.h mem.h device.h model.h
pc.o: 86box.h ibm.h mem.h cpu/cpu.h cpu/x86_ops.h cpu/codegen.h \
pc.o: 86box.h ibm.h mem.h CPU/cpu.h CPU/x86_ops.h CPU/codegen.h \
dma.h nvr.h pic.h pit.h timer.h device.h model.h disc.h \
disc_86f.h disc_fdi.h disc_imd.h disc_img.h disc_td0.h \
disc_random.h config.h fdc.h fdd.h gameport.h plat_joystick.h \
plat_midi.h hdd.h ide.h cdrom.h cdrom_ioctl.h cdrom_image.h \
cdrom_null.h scsi.h keyboard.h plat_keyboard.h keyboard_at.h \
mouse.h plat_mouse.h network/network.h serial.h \
sound/sound.h sound/snd_cms.h sound/snd_dbopl.h \
sound/snd_mpu401.h sound/snd_opl.h sound/snd_gus.h \
sound/snd_sb.h sound/snd_speaker.h sound/snd_ssi2001.h \
video/video.h video/vid_voodoo.h win/plat_ui.h
mouse.h plat_mouse.h NETWORK/network.h serial.h \
SOUND/sound.h SOUND/snd_cms.h SOUND/snd_dbopl.h \
SOUND/snd_mpu401.h SOUND/snd_opl.h SOUND/snd_gus.h \
SOUND/snd_sb.h SOUND/snd_speaker.h SOUND/snd_ssi2001.h \
VIDEO/video.h VIDEO/vid_voodoo.h WIN/plat_ui.h
pc87306.o: ibm.h disc.h fdc.h fdd.h ide.h io.h lpt.h serial.h pc87306.h
@@ -529,16 +529,16 @@ pic.o: ibm.h io.h pic.h pit.h
piix.o: ibm.h dma.h ide.h io.h mem.h pci.h piix.h
pit.o: ibm.h cpu/cpu.h dma.h io.h pic.h pit.h device.h timer.h \
model.h sound/snd_speaker.h video/video.h
pit.o: ibm.h CPU/cpu.h dma.h io.h pic.h pit.h device.h timer.h \
model.h SOUND/snd_speaker.h video/video.h
ppi.o: ibm.h pit.h plat_keyboard.h plat_mouse.h
ps1.o: ibm.h cpu/cpu.h io.h mem.h rom.h device.h model.h lpt.h serial.h
ps1.o: ibm.h CPU/cpu.h io.h mem.h rom.h device.h model.h lpt.h serial.h
ps2.o: ibm.h cpu/cpu.h io.h mem.h rom.h device.h model.h lpt.h serial.h
ps2.o: ibm.h CPU/cpu.h io.h mem.h rom.h device.h model.h lpt.h serial.h
ps2_mca.o: ibm.h cpu/cpu.h cpu/x86.h io.h mca.h mem.h rom.h device.h \
ps2_mca.o: ibm.h CPU/cpu.h CPU/x86.h io.h mca.h mem.h rom.h device.h \
lpt.h ps2_mca.h ps2_nvr.h serial.h
ps2_nvr.o: ibm.h device.h io.h mem.h rom.h ps2_nvr.h
@@ -547,7 +547,7 @@ rom.o: config.h ibm.h mem.h rom.h
rtc.o: nvr.h rtc.h
scat.o: ibm.h cpu/cpu.h io.h mem.h device.h model.h
scat.o: ibm.h CPU/cpu.h io.h mem.h device.h model.h
scsi.o: 86box.h ibm.h timer.h device.h cdrom.h scsi.h \
scsi_aha154x.h scsi_buslogic.h
@@ -562,7 +562,7 @@ scsi_buslogic.o: ibm.h io.h mem.h rom.h dma.h pic.h pci.h timer.h \
scsi_buslogic.h
scsi_disk.o: 86box.h cdrom.h hdd_image.h ibm.h ide.h piix.h scsi.h \
scsi_disk.h timer.h win/plat_iodev.h
scsi_disk.h timer.h WIN/plat_iodev.h
serial.o: ibm.h io.h pic.h timer.h serial.h plat_serial.h
@@ -571,7 +571,7 @@ serial_old.o: ibm.h io.h mouse.h pic.h serial.h timer.h
sio.o: ibm.h cdrom.h disc.h dma.h fdc.h keyboard_at.h ide.h \
io.h mem.h pci.h sio.h
sis496.o: ibm.h cpu/cpu.h io.h mem.h pci.h device.h model.h
sis496.o: ibm.h CPU/cpu.h io.h mem.h pci.h device.h model.h
sis50x.o: ibm.h device.h io.h mem.h pci.h sis50x.h
@@ -593,233 +593,229 @@ wd76c10.o: ibm.h disc.h fdc.h io.h mem.h serial.h wd76c10.h
xtide.o: ibm.h io.h mem.h rom.h device.h ide.h xtide.h
# cpu/
386.o: ibm.h cpu/cpu.h cpu/x86.h cpu/x87.h mem.h disc.h fdc.h pic.h timer.h cpu/386_common.h
386.o: ibm.h CPU/cpu.h CPU/x86.h CPU/x87.h mem.h disc.h fdc.h pic.h timer.h CPU/386_common.h
386_dynarec.o: ibm.h cpu/cpu.h cpu/x86.h cpu/x86_ops.h cpu/x87.h mem.h cpu/codegen.h disc.h fdc.h pic.h timer.h cpu/386_common.h \
cpu/x86_ops.h cpu/x86seg.h cpu/x86_ops_arith.h cpu/x86_ops_atomic.h cpu/x86_ops_bcd.h cpu/x86_ops_bit.h \
cpu/x86_ops_bitscan.h cpu/x86_ops_call.h cpu/x86_ops_flag.h cpu/x86_ops_fpu.h cpu/x86_ops_inc_dec.h cpu/x86_ops_int.h \
cpu/x86_ops_io.h cpu/x86_ops_jump.h cpu/x86_ops_misc.h \
cpu/x87_ops_arith.h cpu/x87_ops_misc.h cpu/x87_ops_loadstore.h \
cpu/x87_ops.h cpu/x86_ops_i686.h cpu/x86_ops_mmx.h \
cpu/x86_ops_mmx_arith.h cpu/x86_ops_mmx_cmp.h cpu/x86_ops_mmx_logic.h cpu/x86_ops_mmx_pack.h cpu/x86_ops_mmx_shift.h \
cpu/x86_ops_mov.h cpu/x86_ops_mov_ctrl.h cpu/x86_ops_mov_seg.h cpu/x86_ops_movx.h cpu/x86_ops_msr.h cpu/x86_ops_mul.h \
cpu/x86_ops_pmode.h cpu/x86_ops_prefix.h cpu/x86_ops_rep.h cpu/x86_ops_ret.h cpu/x86_ops_set.h cpu/x86_ops_shift.h \
cpu/x86_ops_stack.h cpu/x86_ops_string.h cpu/x86_ops_xchg.h \
cpu/386_ops.h
386_dynarec.o: ibm.h CPU/cpu.h CPU/x86.h CPU/x86_ops.h CPU/x87.h mem.h CPU/codegen.h disc.h fdc.h pic.h timer.h CPU/386_common.h \
CPU/x86_ops.h CPU/x86seg.h CPU/x86_ops_arith.h CPU/x86_ops_atomic.h CPU/x86_ops_bcd.h CPU/x86_ops_bit.h \
CPU/x86_ops_bitscan.h CPU/x86_ops_call.h CPU/x86_ops_flag.h CPU/x86_ops_fpu.h CPU/x86_ops_inc_dec.h CPU/x86_ops_int.h \
CPU/x86_ops_io.h CPU/x86_ops_jump.h CPU/x86_ops_misc.h \
CPU/x87_ops_arith.h CPU/x87_ops_misc.h CPU/x87_ops_loadstore.h \
CPU/x87_ops.h CPU/x86_ops_i686.h CPU/x86_ops_mmx.h \
CPU/x86_ops_mmx_arith.h CPU/x86_ops_mmx_cmp.h CPU/x86_ops_mmx_logic.h CPU/x86_ops_mmx_pack.h CPU/x86_ops_mmx_shift.h \
CPU/x86_ops_mov.h CPU/x86_ops_mov_ctrl.h CPU/x86_ops_mov_seg.h CPU/x86_ops_movx.h CPU/x86_ops_msr.h CPU/x86_ops_mul.h \
CPU/x86_ops_pmode.h CPU/x86_ops_prefix.h CPU/x86_ops_rep.h CPU/x86_ops_ret.h CPU/x86_ops_set.h CPU/x86_ops_shift.h \
CPU/x86_ops_stack.h CPU/x86_ops_string.h CPU/x86_ops_xchg.h \
CPU/386_ops.h
386_dynarec_ops.o: ibm.h cpu/cpu.h cpu/x86.h cpu/x86_ops.h cpu/x87.h cpu/x86_flags.h mem.h cpu/codegen.h pic.h cpu/386_common.h \
cpu/x86_ops.h cpu/x86seg.h cpu/x86_ops_arith.h cpu/x86_ops_atomic.h cpu/x86_ops_bcd.h cpu/x86_ops_bit.h \
cpu/x86_ops_bitscan.h cpu/x86_ops_call.h cpu/x86_ops_flag.h cpu/x86_ops_fpu.h cpu/x86_ops_inc_dec.h cpu/x86_ops_int.h \
cpu/x86_ops_io.h cpu/x86_ops_jump.h cpu/x86_ops_misc.h \
cpu/x87_ops_arith.h cpu/x87_ops_misc.h cpu/x87_ops_loadstore.h \
cpu/x87_ops.h cpu/x86_ops_i686.h cpu/x86_ops_mmx.h \
cpu/x86_ops_mmx_arith.h cpu/x86_ops_mmx_cmp.h cpu/x86_ops_mmx_logic.h cpu/x86_ops_mmx_pack.h cpu/x86_ops_mmx_shift.h \
cpu/x86_ops_mov.h cpu/x86_ops_mov_ctrl.h cpu/x86_ops_mov_seg.h cpu/x86_ops_movx.h cpu/x86_ops_msr.h cpu/x86_ops_mul.h \
cpu/x86_ops_pmode.h cpu/x86_ops_prefix.h cpu/x86_ops_rep.h cpu/x86_ops_ret.h cpu/x86_ops_set.h cpu/x86_ops_shift.h \
cpu/x86_ops_stack.h cpu/x86_ops_string.h cpu/x86_ops_xchg.h \
cpu/386_ops.h
386_dynarec_ops.o: ibm.h CPU/cpu.h CPU/x86.h CPU/x86_ops.h CPU/x87.h CPU/x86_flags.h mem.h CPU/codegen.h pic.h CPU/386_common.h \
CPU/x86_ops.h CPU/x86seg.h CPU/x86_ops_arith.h CPU/x86_ops_atomic.h CPU/x86_ops_bcd.h CPU/x86_ops_bit.h \
CPU/x86_ops_bitscan.h CPU/x86_ops_call.h CPU/x86_ops_flag.h CPU/x86_ops_fpu.h CPU/x86_ops_inc_dec.h CPU/x86_ops_int.h \
CPU/x86_ops_io.h CPU/x86_ops_jump.h CPU/x86_ops_misc.h \
CPU/x87_ops_arith.h CPU/x87_ops_misc.h CPU/x87_ops_loadstore.h \
CPU/x87_ops.h CPU/x86_ops_i686.h CPU/x86_ops_mmx.h \
CPU/x86_ops_mmx_arith.h CPU/x86_ops_mmx_cmp.h CPU/x86_ops_mmx_logic.h CPU/x86_ops_mmx_pack.h CPU/x86_ops_mmx_shift.h \
CPU/x86_ops_mov.h CPU/x86_ops_mov_ctrl.h CPU/x86_ops_mov_seg.h CPU/x86_ops_movx.h CPU/x86_ops_msr.h CPU/x86_ops_mul.h \
CPU/x86_ops_pmode.h CPU/x86_ops_prefix.h CPU/x86_ops_rep.h CPU/x86_ops_ret.h CPU/x86_ops_set.h CPU/x86_ops_shift.h \
CPU/x86_ops_stack.h CPU/x86_ops_string.h CPU/x86_ops_xchg.h \
CPU/386_ops.h
808x.o: ibm.h cpu/cpu.h cpu/x86.h keyboard.h mem.h nmi.h pic.h scsi.h timer.h
808x.o: ibm.h CPU/cpu.h CPU/x86.h keyboard.h mem.h nmi.h pic.h scsi.h timer.h
codegen.o: ibm.h cpu/x86_ops.h mem.h cpu/codegen.h
codegen.o: ibm.h CPU/x86_ops.h mem.h CPU/codegen.h
codegen_ops.o: ibm.h mem.h cpu/x86.h cpu/x86_ops.h cpu/x86_flags.h cpu/x87.h cpu/386_common.h cpu/cpu.h cpu/codegen.h cpu/codegen_ops.h \
cpu/$(CGOPS) cpu/codegen_ops_arith.h cpu/codegen_ops_fpu.h cpu/codegen_ops_jump.h cpu/codegen_ops_logic.h cpu/codegen_ops_misc.h \
cpu/codegen_ops_mmx.h cpu/codegen_ops_mov.h cpu/codegen_ops_shift.h cpu/codegen_ops_stack.h cpu/codegen_ops_xchg.h
codegen_ops.o: ibm.h mem.h CPU/x86.h CPU/x86_ops.h CPU/x86_flags.h CPU/x87.h CPU/386_common.h CPU/cpu.h CPU/codegen.h CPU/codegen_ops.h \
CPU/$(CGOPS) CPU/codegen_ops_arith.h CPU/codegen_ops_fpu.h CPU/codegen_ops_jump.h CPU/codegen_ops_logic.h CPU/codegen_ops_misc.h \
CPU/codegen_ops_mmx.h CPU/codegen_ops_mov.h CPU/codegen_ops_shift.h CPU/codegen_ops_stack.h CPU/codegen_ops_xchg.h
codegen_timing_486.o: ibm.h cpu/cpu.h cpu/x86.h cpu/x87_ops.h cpu/x87.h mem.h cpu/codegen.h cpu/codegen_ops.h cpu/codegen_timing_common.h
codegen_timing_486.o: ibm.h CPU/cpu.h CPU/x86.h CPU/x87_ops.h CPU/x87.h mem.h CPU/codegen.h CPU/codegen_ops.h CPU/codegen_timing_common.h
codegen_timing_686.o: ibm.h cpu/cpu.h cpu/x86.h cpu/x87_ops.h cpu/x87.h mem.h cpu/codegen.h cpu/codegen_timing_common.h
codegen_timing_686.o: ibm.h CPU/cpu.h CPU/x86.h CPU/x87_ops.h CPU/x87.h mem.h CPU/codegen.h CPU/codegen_timing_common.h
codegen_timing_common.o: ibm.h cpu/codegen_timing_common.h
codegen_timing_common.o: ibm.h CPU/codegen_timing_common.h
codegen_timing_pentium.o: ibm.h cpu/cpu.h cpu/x86.h cpu/x87_ops.h cpu/x87.h mem.h cpu/codegen.h cpu/codegen_ops.h cpu/codegen_timing_common.h
codegen_timing_pentium.o: ibm.h CPU/cpu.h CPU/x86.h CPU/x87_ops.h CPU/x87.h mem.h CPU/codegen.h CPU/codegen_ops.h CPU/codegen_timing_common.h
codegen_timing_winchip.o: ibm.h cpu/cpu.h cpu/x86.h cpu/x87_ops.h cpu/x87.h mem.h cpu/codegen.h cpu/codegen_ops.h cpu/codegen_timing_common.h
codegen_timing_winchip.o: ibm.h CPU/cpu.h CPU/x86.h CPU/x87_ops.h CPU/x87.h mem.h CPU/codegen.h CPU/codegen_ops.h CPU/codegen_timing_common.h
codegen_x86.o: ibm.h cpu/cpu.h cpu/x86.h cpu/x86_flags.h cpu/x86_ops.h cpu/x87.h mem.h cpu/386_common.h cpu/codegen.h cpu/codegen_ops.h \
cpu/codegen_ops_x86.h
codegen_x86.o: ibm.h CPU/cpu.h CPU/x86.h CPU/x86_flags.h CPU/x86_ops.h CPU/x87.h mem.h CPU/386_common.h CPU/codegen.h CPU/codegen_ops.h \
CPU/codegen_ops_x86.h
codegen_x86-64.o: ibm.h mem.h cpu/cpu.h cpu/x86.h cpu/x86_flags.h cpu/x86_ops.h cpu/x87.h cpu/386_common.h cpu/codegen.h cpu/codegen_ops.h \
cpu/codegen_ops_x86-64.h
codegen_x86-64.o: ibm.h mem.h CPU/cpu.h CPU/x86.h CPU/x86_flags.h CPU/x86_ops.h CPU/x87.h CPU/386_common.h CPU/codegen.h CPU/codegen_ops.h \
CPU/codegen_ops_x86-64.h
cpu.o: ibm.h cpu/cpu.h device.h model.h io.h cpu/x86_ops.h mem.h pci.h cpu/codegen.h
cpu.o: ibm.h CPU/cpu.h device.h model.h io.h CPU/x86_ops.h mem.h pci.h CPU/codegen.h
x86seg.o: ibm.h mem.h nvr.h cpu/x86.h cpu/386.h cpu/386_common.h cpu/cpu.h
x86seg.o: ibm.h mem.h nvr.h CPU/x86.h CPU/386.h CPU/386_common.h CPU/cpu.h
x87.o: ibm.h pic.h cpu/x86.h cpu/x86_flags.h cpu/x86_ops.h cpu/x87.h cpu/386_common.h
x87.o: ibm.h pic.h CPU/x86.h CPU/x86_flags.h CPU/x86_ops.h CPU/x87.h CPU/386_common.h
# network/
net_ne2000.o: ibm.h io.h mem.h rom.h pci.h pic.h device.h config.h disc_random.h network/network.h network/net_ne2000.h network/bswap.h
net_ne2000.o: ibm.h io.h mem.h rom.h pci.h pic.h device.h config.h disc_random.h NETWORK/network.h NETWORK/net_ne2000.h NETWORK/bswap.h
net_pcap.o: ibm.h config.h device.h network/network.h win/plat_dynld.h win/plat_thread.h
net_pcap.o: ibm.h config.h device.h NETWORK/network.h WIN/plat_dynld.h WIN/plat_thread.h
net_slirp.o: network/slirp/slirp.h network/slirp/queue.h ibm.h config.h device.h network/network.h win/plat_thread.h
net_slirp.o: NETWORK/slirp/slirp.h NETWORK/slirp/queue.h ibm.h config.h device.h NETWORK/network.h WIN/plat_thread.h
network.o: ibm.h device.h network/network.h network/net_ne2000.h win/plat_ui.h
network.o: ibm.h device.h NETWORK/network.h NETWORK/net_ne2000.h WIN/plat_ui.h
# video/
vid_ati_eeprom.o: ibm.h mem.h rom.h video/vid_ati_eeprom.h
vid_ati_eeprom.o: ibm.h mem.h rom.h VIDEO/vid_ati_eeprom.h
vid_ati_mach64.o: ibm.h device.h io.h mem.h pci.h rom.h win/plat_thread.h video/video.h video/vid_svga.h video/vid_svga_render.h \
video/vid_ati68860_ramdac.h video/vid_ati_eeprom.h video/vid_ics2595.h
vid_ati_mach64.o: ibm.h device.h io.h mem.h pci.h rom.h WIN/plat_thread.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_svga_render.h \
VIDEO/vid_ati68860_ramdac.h VIDEO/vid_ati_eeprom.h VIDEO/vid_ics2595.h
vid_ati18800.o: ibm.h io.h mem.h rom.h device.h video/video.h video/vid_ati18800.h video/vid_ati_eeprom.h video/vid_svga.h
vid_ati18800.o: ibm.h io.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_ati18800.h VIDEO/vid_ati_eeprom.h VIDEO/vid_svga.h
vid_ati28800.o: ibm.h io.h mem.h rom.h device.h timer.h video/video.h video/vid_ati28800.h video/vid_ati_eeprom.h video/vid_svga.h \
video/vid_svga_render.h
vid_ati28800.o: ibm.h io.h mem.h rom.h device.h timer.h VIDEO/video.h VIDEO/vid_ati28800.h VIDEO/vid_ati_eeprom.h VIDEO/vid_svga.h \
VIDEO/vid_svga_render.h
vid_ati68860_ramdac.o: ibm.h mem.h video/video.h video/vid_svga.h video/vid_ati68860_ramdac.h video/vid_svga_render.h
vid_ati68860_ramdac.o: ibm.h mem.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_ati68860_ramdac.h VIDEO/vid_svga_render.h
vid_cga.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_cga.h video/vid_cga_comp.h win/win_cgapal.h
vid_cga.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_cga.h VIDEO/vid_cga_comp.h WIN/win_cgapal.h
vid_cga_comp.o: ibm.h device.h mem.h video/vid_cga.h video/vid_cga_comp.h
vid_cga_comp.o: ibm.h device.h mem.h VIDEO/vid_cga.h VIDEO/vid_cga_comp.h
vid_cl_gd.o: ibm.h io.h mem.h rom.h device.h video/video.h video/vid_svga.h video/vid_svga_render.h video/vid_cl_ramdac.h \
video/vid_cl_gd.h video/vid_cl_gd_blit.h
vid_cl_gd.o: ibm.h io.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_svga_render.h VIDEO/vid_cl_ramdac.h \
VIDEO/vid_cl_gd.h VIDEO/vid_cl_gd_blit.h
vid_cl_gd_blit.o: ibm.h io.h mem.h rom.h device.h video/video.h video/vid_svga.h video/vid_svga_render.h video/vid_cl_ramdac.h \
video/vid_cl_gd.h video/vid_cl_gd_blit.h video/vid_cl_gd_vga_rop.h
vid_cl_gd_blit.o: ibm.h io.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_svga_render.h VIDEO/vid_cl_ramdac.h \
VIDEO/vid_cl_gd.h VIDEO/vid_cl_gd_blit.h VIDEO/vid_cl_gd_vga_rop.h
vid_cl_gd_ramdac.o: ibm.h mem.h rom.h device.h video/video.h video/vid_svga.h video/vid_cl_ramdac.h video/vid_cl_gd.h \
video/vid_cl_gd_blit.h
vid_cl_gd_ramdac.o: ibm.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_cl_ramdac.h VIDEO/vid_cl_gd.h \
VIDEO/vid_cl_gd_blit.h
vid_colorplus.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_cga.h video/vid_colorplus.h video/vid_cga_comp.h
vid_colorplus.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_cga.h VIDEO/vid_colorplus.h VIDEO/vid_cga_comp.h
vid_ega.o: ibm.h io.h mem.h rom.h timer.h device.h video/video.h video/vid_ega.h video/vid_ega_render.h
vid_ega.o: ibm.h io.h mem.h rom.h timer.h device.h VIDEO/video.h VIDEO/vid_ega.h VIDEO/vid_ega_render.h
vid_ega_render.o: ibm.h device.h mem.h rom.h video/video.h video/vid_ega.h video/vid_ega_render.h
vid_ega_render.o: ibm.h device.h mem.h rom.h VIDEO/video.h VIDEO/vid_ega.h VIDEO/vid_ega_render.h
vid_et4000.o: ibm.h io.h mem.h rom.h device.h video/video.h video/vid_svga.h video/vid_sc1502x_ramdac.h video/vid_et4000.h
vid_et4000.o: ibm.h io.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_sc1502x_ramdac.h VIDEO/vid_et4000.h
vid_et4000w32.o: ibm.h io.h mem.h pci.h rom.h device.h win/plat_thread.h video/video.h video/vid_svga.h video/vid_icd2061.h \
video/vid_stg_ramdac.h
vid_et4000w32.o: ibm.h io.h mem.h pci.h rom.h device.h WIN/plat_thread.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_icd2061.h \
VIDEO/vid_stg_ramdac.h
vid_genius.o: ibm.h io.h mem.h rom.h timer.h device.h video/video.h video/vid_genius.h
vid_genius.o: ibm.h io.h mem.h rom.h timer.h device.h VIDEO/video.h VIDEO/vid_genius.h
vid_hercules.o: ibm.h mem.h io.h timer.h device.h video/video.h video/vid_hercules.h win/win_cgapal.h
vid_hercules.o: ibm.h mem.h io.h timer.h device.h VIDEO/video.h VIDEO/vid_hercules.h WIN/win_cgapal.h
vid_herculesplus.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_herculesplus.h
vid_herculesplus.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_herculesplus.h
vid_icd2061.o: ibm.h video/vid_icd2061.h
vid_icd2061.o: ibm.h VIDEO/vid_icd2061.h
vid_ics2595.o: ibm.h video/vid_ics2595.h
vid_ics2595.o: ibm.h VIDEO/vid_ics2595.h
vid_incolor.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_incolor.h
vid_incolor.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_incolor.h
vid_mda.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_mda.h win/win_cgapal.h
vid_mda.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_mda.h WIN/win_cgapal.h
vid_nv_riva128.o: ibm.h io.h mem.h pci.h pic.h rom.h timer.h device.h win/plat_thread.h video/video.h video/vid_svga.h \
video/vid_svga_render.h
vid_nv_riva128.o: ibm.h io.h mem.h pci.h pic.h rom.h timer.h device.h WIN/plat_thread.h VIDEO/video.h VIDEO/vid_svga.h \
VIDEO/vid_svga_render.h
vid_olivetti_m24.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_olivetti_m24.h
vid_olivetti_m24.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_olivetti_m24.h
vid_oti067.o: ibm.h io.h mem.h rom.h device.h video/video.h video/vid_oti067.h video/vid_svga.h
vid_oti067.o: ibm.h io.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_oti067.h VIDEO/vid_svga.h
vid_paradise.o: ibm.h io.h mem.h rom.h device.h video/video.h video/vid_paradise.h video/vid_svga.h video/vid_svga_render.h
vid_paradise.o: ibm.h io.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_paradise.h VIDEO/vid_svga.h VIDEO/vid_svga_render.h
vid_pc200.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_cga.h video/vid_pc200.h
vid_pc200.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_cga.h VIDEO/vid_pc200.h
vid_pc1512.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_pc1512.h
vid_pc1512.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_pc1512.h
vid_pc1640.o: ibm.h io.h mem.h rom.h timer.h device.h video/video.h video/vid_cga.h video/vid_ega.h video/vid_pc1640.h
vid_pc1640.o: ibm.h io.h mem.h rom.h timer.h device.h VIDEO/video.h VIDEO/vid_cga.h VIDEO/vid_ega.h VIDEO/vid_pc1640.h
vid_pcjr.o: ibm.h io.h mem.h pic.h timer.h device.h video/video.h video/vid_cga_comp.h video/vid_pcjr.h
vid_pcjr.o: ibm.h io.h mem.h pic.h timer.h device.h VIDEO/video.h VIDEO/vid_cga_comp.h VIDEO/vid_pcjr.h
vid_ps1_svga.o: ibm.h io.h mem.h rom.h device.h video/video.h video/vid_svga.h video/vid_vga.h
vid_ps1_svga.o: ibm.h io.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_vga.h
vid_s3.o: ibm.h device.h io.h mem.h pci.h rom.h win/plat_thread.h video/video.h video/vid_s3.h video/vid_svga.h \
video/vid_svga_render.h video/vid_sdac_ramdac.h
vid_s3.o: ibm.h device.h io.h mem.h pci.h rom.h WIN/plat_thread.h VIDEO/video.h VIDEO/vid_s3.h VIDEO/vid_svga.h \
VIDEO/vid_svga_render.h VIDEO/vid_sdac_ramdac.h
vid_s3_virge.o: ibm.h io.h mem.h pci.h rom.h device.h win/plat_thread.h video/video.h video/vid_s3_virge.h video/vid_svga.h \
video/vid_svga_render.h
vid_s3_virge.o: ibm.h io.h mem.h pci.h rom.h device.h WIN/plat_thread.h VIDEO/video.h VIDEO/vid_s3_virge.h VIDEO/vid_svga.h \
VIDEO/vid_svga_render.h
vid_sc1502x_ramdac.o: ibm.h mem.h video/video.h video/vid_svga.h video/vid_sc1502x_ramdac.h
vid_sc1502x_ramdac.o: ibm.h mem.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_sc1502x_ramdac.h
vid_sdac_ramdac.o: ibm.h mem.h video/video.h video/vid_svga.h video/vid_sdac_ramdac.h
vid_sdac_ramdac.o: ibm.h mem.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_sdac_ramdac.h
vid_stg_ramdac.o: ibm.h mem.h video/video.h video/vid_svga.h video/vid_stg_ramdac.h
vid_stg_ramdac.o: ibm.h mem.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_stg_ramdac.h
vid_svga.o: ibm.h io.h mem.h rom.h timer.h video/video.h video/vid_svga.h video/vid_svga_render.h
vid_svga.o: ibm.h io.h mem.h rom.h timer.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_svga_render.h
vid_svga_render.o: ibm.h mem.h video/video.h video/vid_svga.h video/vid_svga_render.h
vid_svga_render.o: ibm.h mem.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_svga_render.h
vid_tandy.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_tandy.h video/vid_cga_comp.h
vid_tandy.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_tandy.h VIDEO/vid_cga_comp.h
vid_tandysl.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_tandysl.h
vid_tandysl.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_tandysl.h
vid_tgui9440.o: ibm.h io.h mem.h pci.h rom.h device.h win/plat_thread.h video/video.h video/vid_svga.h video/vid_svga_render.h \
video/vid_tkd8001_ramdac.h video/vid_tgui9440.h
vid_tgui9440.o: ibm.h io.h mem.h pci.h rom.h device.h WIN/plat_thread.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_svga_render.h \
VIDEO/vid_tkd8001_ramdac.h VIDEO/vid_tgui9440.h
vid_tkd8001_ramdac.o: ibm.h mem.h video/video.h video/vid_svga.h video/vid_tkd8001_ramdac.h
vid_tkd8001_ramdac.o: ibm.h mem.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_tkd8001_ramdac.h
vid_tvga.o: ibm.h io.h mem.h rom.h device.h video/video.h video/vid_svga.h video/vid_svga_render.h video/vid_tkd8001_ramdac.h \
video/vid_tvga.h
vid_tvga.o: ibm.h io.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_svga_render.h VIDEO/vid_tkd8001_ramdac.h \
VIDEO/vid_tvga.h
vid_vga.o: ibm.h io.h mem.h rom.h device.h video/video.h video/vid_svga.h video/vid_vga.h
vid_vga.o: ibm.h io.h mem.h rom.h device.h VIDEO/video.h VIDEO/vid_svga.h VIDEO/vid_vga.h
vid_voodoo.o: ibm.h cpu/cpu.h mem.h rom.h pci.h timer.h device.h win/plat_thread.h video/video.h video/vid_svga.h \
video/vid_voodoo.h video/vid_voodoo_dither.h video/$(VCG)
vid_voodoo.o: ibm.h CPU/cpu.h mem.h rom.h pci.h timer.h device.h WIN/plat_thread.h VIDEO/video.h VIDEO/vid_svga.h \
VIDEO/vid_voodoo.h VIDEO/vid_voodoo_dither.h VIDEO/$(VCG)
vid_wy700.o: ibm.h io.h mem.h timer.h device.h video/video.h video/vid_wy700.h
vid_wy700.o: ibm.h io.h mem.h timer.h device.h VIDEO/video.h VIDEO/vid_wy700.h
video.o: ibm.h cpu/cpu.h io.h mem.h rom.h config.h device.h timer.h win/plat_thread.h video/video.h video/vid_svga.h \
win/resource.h win/win.h win/win_cgapal.h \
video/vid_ati18800.h video/vid_ati28800.h video/vid_ati_mach64.h video/vid_cga.h \
video/vid_cl_ramdac.h video/vid_cl_gd.h \
video/vid_ega.h video/vid_et4000.h video/vid_et4000w32.h video/vid_genius.h video/vid_hercules.h \
video/vid_herculesplus.h video/vid_incolor.h video/vid_colorplus.h video/vid_mda.h \
video/vid_nv_riva128.h \
video/vid_olivetti_m24.h video/vid_oti067.h video/vid_paradise.h video/vid_pc1512.h video/vid_pc1640.h \
video/vid_pc200.h video/vid_pcjr.h video/vid_ps1_svga.h video/vid_s3.h video/vid_s3_virge.h video/vid_tandy.h \
video/vid_tandysl.h video/vid_tgui9440.h video/vid_tvga.h video/vid_vga.h video/vid_wy700.h
video.o: ibm.h CPU/cpu.h io.h mem.h rom.h config.h device.h timer.h WIN/plat_thread.h VIDEO/video.h VIDEO/vid_svga.h \
WIN/resource.h WIN/win.h WIN/win_cgapal.h \
VIDEO/vid_ati18800.h VIDEO/vid_ati28800.h VIDEO/vid_ati_mach64.h VIDEO/vid_cga.h \
VIDEO/vid_cl_ramdac.h VIDEO/vid_cl_gd.h \
VIDEO/vid_ega.h VIDEO/vid_et4000.h VIDEO/vid_et4000w32.h VIDEO/vid_genius.h VIDEO/vid_hercules.h \
VIDEO/vid_herculesplus.h VIDEO/vid_incolor.h VIDEO/vid_colorplus.h VIDEO/vid_mda.h \
VIDEO/vid_nv_riva128.h \
VIDEO/vid_olivetti_m24.h VIDEO/vid_oti067.h VIDEO/vid_paradise.h VIDEO/vid_pc1512.h VIDEO/vid_pc1640.h \
VIDEO/vid_pc200.h VIDEO/vid_pcjr.h VIDEO/vid_ps1_svga.h VIDEO/vid_s3.h VIDEO/vid_s3_virge.h VIDEO/vid_tandy.h \
VIDEO/vid_tandysl.h VIDEO/vid_tgui9440.h VIDEO/vid_tvga.h VIDEO/vid_vga.h VIDEO/vid_wy700.h
# win/
win.o: 86box.h device.h disc.h fdd.h hdd.h ibm.h cpu/cpu.h mem.h rom.h nvr.h config.h model.h ide.h cdrom.h cdrom_null.h \
cdrom_ioctl.h cdrom_image.h scsi.h scsi_disk.h video/video.h video/vid_ega.h mouse.h sound/sound.h sound/snd_dbopl.h \
win/plat_keyboard.h win/plat_iodev.h win/plat_mouse.h win/plat_midi.h win/plat_thread.h win/plat_ticks.h win/plat_ui.h \
win/resource.h win/win.h win/win_cgapal.h win/win_ddraw.h win/win_d3d.h win/win_language.h
win.o: 86box.h device.h disc.h fdd.h hdd.h ibm.h CPU/cpu.h mem.h rom.h nvr.h config.h model.h ide.h cdrom.h cdrom_null.h \
cdrom_ioctl.h cdrom_image.h scsi.h scsi_disk.h VIDEO/video.h VIDEO/vid_ega.h mouse.h SOUND/sound.h SOUND/snd_dbopl.h \
WIN/plat_keyboard.h WIN/plat_iodev.h WIN/plat_mouse.h WIN/plat_midi.h WIN/plat_thread.h WIN/plat_ticks.h WIN/plat_ui.h \
WIN/resource.h WIN/win.h WIN/win_cgapal.h WIN/win_ddraw.h WIN/win_d3d.h WIN/win_language.h
win_d3d.o: video/video.h win/win.h win/resource.h win/win_d3d.h win/win_cgapal.h
win_d3d.o: VIDEO/video.h WIN/win.h WIN/resource.h WIN/win_d3d.h WIN/win_cgapal.h
win_d3d_fs.o: 86box.h video/video.h win/win.h win/resource.h win/win_d3d.h win/win_cgapal.h
win_d3d_fs.o: 86box.h VIDEO/video.h WIN/win.h WIN/resource.h WIN/win_d3d.h WIN/win_cgapal.h
win_ddraw.o: video/video.h win/resource.h win/win_ddraw.h win/win_cgapal.h
win_ddraw.o: VIDEO/video.h WIN/resource.h WIN/win_ddraw.h WIN/win_cgapal.h
win_ddraw_fs.o: video/video.h win/resource.h win/win_ddraw.h win/win_cgapal.h
win_ddraw_fs.o: VIDEO/video.h WIN/resource.h WIN/win_ddraw.h WIN/win_cgapal.h
win_ddraw_screenshot.o: video/video.h win/resource.h win/win.h win/win_ddraw.h win/win_language.h
win_ddraw_screenshot.o: VIDEO/video.h WIN/resource.h WIN/win.h WIN/win_ddraw.h WIN/win_language.h
win_deviceconfig.o: win/plat_midi.h win/resource.h win/win.h win/win_language.h
win_deviceconfig.o: WIN/plat_midi.h WIN/resource.h WIN/win.h WIN/win_language.h
win_dynld.o: win/plat_dynld.h win/resource.h ibm.h
win_dynld.o: WIN/plat_dynld.h WIN/resource.h ibm.h
win_iodev.o: ibm.h device.h cdrom.h cdrom_image.h cdrom_ioctl.h cdrom_null.h scsi_disk.h win/plat_iodev.h win/resource.h win/win.h
win_iodev.o: ibm.h device.h cdrom.h cdrom_image.h cdrom_ioctl.h cdrom_null.h scsi_disk.h WIN/plat_iodev.h WIN/resource.h WIN/win.h
win_joystick.o: device.h gameport.h win/plat_joystick.h win/resource.h win/win.h
win_joystick.o: device.h gameport.h WIN/plat_joystick.h WIN/resource.h WIN/win.h
win_joystickconfig.o: ibm.h config.h device.h gameport.h win/plat_joystick.h win/resource.h win/win.h
win_joystickconfig.o: ibm.h config.h device.h gameport.h WIN/plat_joystick.h WIN/resource.h WIN/win.h
win_keyboard.o: device.h win/plat_keyboard.h win/resource.h win/win.h
win_keyboard.o: device.h WIN/plat_keyboard.h WIN/resource.h WIN/win.h
win_language.o: ibm.h device.h ide.h win/plat_ui.h win/resource.h win/win.h win/win_language.h io.h mem.h rom.h device.h ide.h xtide.h
win_language.o: ibm.h device.h ide.h WIN/plat_ui.h WIN/resource.h WIN/win.h WIN/win_language.h io.h mem.h rom.h device.h ide.h xtide.h
win_midi.o: ibm.h config.h sound/midi.h win/plat_midi.h win/resource.h
win_midi.o: ibm.h config.h SOUND/midi.h WIN/plat_midi.h WIN/resource.h
win_mouse.o: win/plat_mouse.h win/resource.h win/win.h
win_mouse.o: WIN/plat_mouse.h WIN/resource.h WIN/win.h
win_opendir.o: ibm.h win/plat_dir.h win/resource.h
win_opendir.o: ibm.h WIN/plat_dir.h WIN/resource.h
win_serial.o: win/plat_thread.h win/plat_serial.h win/resource.h
win_serial.o: WIN/plat_thread.h WIN/plat_serial.h WIN/resource.h
win_settings.o: ibm.h mem.h cpu/cpu.h nvr.h device.h model.h cdrom.h disc.h fdd.h hdd.h ide.h scsi.h network/network.h sound/midi.h \
sound/sound.h sound/snd_dbopl.h sound/snd_mpu401.h video/video.h video/vid_voodoo.h gameport.h mouse.h win/plat_midi.h \
win/resource.h win/win.h win/win_language.h
win_settings.o: ibm.h mem.h CPU/cpu.h nvr.h device.h model.h cdrom.h disc.h fdd.h hdd.h ide.h scsi.h NETWORK/network.h SOUND/midi.h \
SOUND/sound.h SOUND/snd_dbopl.h SOUND/snd_mpu401.h VIDEO/video.h VIDEO/vid_voodoo.h gameport.h mouse.h WIN/plat_midi.h \
WIN/resource.h WIN/win.h WIN/win_language.h
win_status.o: ibm.h mem.h cpu/x86_ops.h cpu/codegen.h device.h win/resource.h win/win.h
win_status.o: ibm.h mem.h CPU/x86_ops.h CPU/codegen.h device.h WIN/resource.h WIN/win.h
win_video.o: video/video.h win/resource.h win/win_cgapal.h
win_video.o: VIDEO/video.h WIN/resource.h WIN/win_cgapal.h
# End of Makefile.mingw.

View File

@@ -16,8 +16,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "slirp/slirp.h"
#include "slirp/queue.h"
#include "SLIRP/slirp.h"
#include "SLIRP/queue.h"
#include "../ibm.h"
#include "../config.h"
#include "../device.h"

View File

@@ -8,13 +8,13 @@
*
* The Emulator's Windows core.
*
* Version: @(#)win.c 1.0.3 2017/06/12
* Version: @(#)win.c 1.0.4 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Fred N. van Kempen, <decwiz@yahoo.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#include <stdint.h>
#include <stdio.h>
@@ -26,9 +26,9 @@
#include "../fdd.h"
#include "../hdd.h"
#include "../ibm.h"
#include "../cpu/cpu.h"
#include "../CPU/cpu.h"
#include "../mem.h"
#include "../network/network.h"
#include "../NETWORK/network.h"
#include "../rom.h"
#include "../nvr.h"
#include "../config.h"
@@ -40,11 +40,11 @@
#include "../cdrom_image.h"
#include "../scsi.h"
#include "../scsi_disk.h"
#include "../video/video.h"
#include "../video/vid_ega.h"
#include "../VIDEO/video.h"
#include "../VIDEO/vid_ega.h"
#include "../mouse.h"
#include "../sound/sound.h"
#include "../sound/snd_dbopl.h"
#include "../SOUND/sound.h"
#include "../SOUND/snd_dbopl.h"
#include "plat_keyboard.h"
#include "plat_iodev.h"
#include "plat_mouse.h"

View File

@@ -8,15 +8,15 @@
*
* Direct3D 9 rendererer and screenshots taking.
*
* Version: @(#)win_d3d.cc 1.0.0 2017/05/30
* Version: @(#)win_d3d.cc 1.0.1 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#include <stdint.h>
#include "../video/video.h"
#include "../VIDEO/video.h"
#include "win.h"
#include "win_d3d.h"
#include "win_cgapal.h"

View File

@@ -8,17 +8,17 @@
*
* Direct3D 9 full screen rendererer and screenshots taking.
*
* Version: @(#)win_d3d_fs.cc 1.0.1 2017/06/03
* Version: @(#)win_d3d_fs.cc 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#include <stdint.h>
#include <stdio.h>
#include "../86box.h"
#include "../video/video.h"
#include "../VIDEO/video.h"
#include "win.h"
#include "win_d3d.h"
#include "win_cgapal.h"

View File

@@ -3,7 +3,7 @@
*/
#include <stdio.h>
#include <stdint.h>
#include "../video/video.h"
#include "../VIDEO/video.h"
#include "win_ddraw.h"
#include "win_cgapal.h"

View File

@@ -2,7 +2,7 @@
see COPYING for more details
*/
#include <stdint.h>
#include "../video/video.h"
#include "../VIDEO/video.h"
#include "win_ddraw.h"
#include "win_cgapal.h"

View File

@@ -8,10 +8,10 @@
*
* DirectDraw screenshot taking code.
*
* Version: @(#)win_ddraw_screenshot.cc 1.0.0 2017/05/30
* Version: @(#)win_ddraw_screenshot.cc 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#include <stdio.h>
@@ -20,7 +20,7 @@
#define BITMAP WINDOWS_BITMAP
#include <windows.h>
#undef BITMAP
#include "../video/video.h"
#include "../VIDEO/video.h"
#include "win.h"
#include "win_ddraw.h"
#include "win_language.h"

View File

@@ -8,7 +8,7 @@
*
* Windows 86Box Settings dialog handler.
*
* Version: @(#)win_settings.c 1.0.6 2017/06/21
* Version: @(#)win_settings.c 1.0.7 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
@@ -23,7 +23,7 @@
#include <inttypes.h>
#include "../ibm.h"
#include "../mem.h"
#include "../cpu/cpu.h"
#include "../CPU/cpu.h"
#include "../nvr.h"
#include "../device.h"
#include "../model.h"
@@ -33,13 +33,13 @@
#include "../hdd.h"
#include "../ide.h"
#include "../scsi.h"
#include "../network/network.h"
#include "../sound/midi.h"
#include "../sound/sound.h"
#include "../sound/snd_dbopl.h"
#include "../sound/snd_mpu401.h"
#include "../video/video.h"
#include "../video/vid_voodoo.h"
#include "../NETWORK/network.h"
#include "../SOUND/sound.h"
#include "../SOUND/midi.h"
#include "../SOUND/snd_dbopl.h"
#include "../SOUND/snd_mpu401.h"
#include "../VIDEO/video.h"
#include "../VIDEO/vid_voodoo.h"
#include "../gameport.h"
#include "../mouse.h"
#include "plat_midi.h"

View File

@@ -8,8 +8,8 @@
#include "../ibm.h"
#include "../mem.h"
#include "../cpu/x86_ops.h"
#include "../cpu/codegen.h"
#include "../CPU/x86_ops.h"
#include "../CPU/codegen.h"
#include "../device.h"
#include "win.h"

View File

@@ -4,7 +4,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "../video/video.h"
#include "../VIDEO/video.h"
#include "win_cgapal.h"

View File

@@ -2,7 +2,7 @@
see COPYING for more details
*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "device.h"
#include "model.h"

View File

@@ -3,7 +3,7 @@
*/
#include <string.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "mem.h"
#include "device.h"

View File

@@ -1,6 +1,6 @@
#include <stdlib.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "device.h"
#include "model.h"

View File

@@ -9,7 +9,7 @@
* Implementation of the CD-ROM drive with SCSI(-like)
* commands, for both ATAPI and SCSI usage.
*
* Version: @(#)cdrom.c 1.0.1 2017/06/03
* Version: @(#)cdrom.c 1.0.2 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
@@ -27,7 +27,7 @@
#include "piix.h"
#include "scsi.h"
#include "timer.h"
#include "win/plat_iodev.h"
#include "WIN/plat_iodev.h"
/* Bits of 'status' */
#define ERR_STAT 0x01

View File

@@ -27,11 +27,6 @@
#include <vector>
#include <fstream>
#include <sstream>
//#include "dosbox.h"
//#include "mem.h"
//#include "mixer.h"
//#include "SDL.h"
//#include "SDL_thread.h"
#include <stdint.h>
typedef signed int Bits;

View File

@@ -12,12 +12,12 @@
* This file lists the functions provided by various platform-
* specific cdrom-ioctl files.
*
* Version: @(#)cdrom_ioctl.h 1.0.1 2017/06/03
* Version: @(#)cdrom_ioctl.h 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2016 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_CDROM_IOCTL_H
#define EMU_CDROM_IOCTL_H

View File

@@ -9,12 +9,12 @@
* Implementation of the CD-ROM null interface for unmounted
* guest CD-ROM drives.
*
* Version: @(#)cdrom_null.h 1.0.1 2017/06/03
* Version: @(#)cdrom_null.h 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2016 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_CDROM_NULL_H
#define EMU_CDROM_NULL_H

View File

@@ -2,7 +2,7 @@
see COPYING for more details
*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "mem.h"
#include "device.h"
#include "model.h"

View File

@@ -8,7 +8,7 @@
*
* Configuration file handler.
*
* Version: @(#)config.c 1.0.0 2017/07/26
* Version: @(#)config.c 1.0.1 2017/08/23
*
* Authors: Sarah Walker,
* Miran Grca, <mgrca8@gmail.com>
@@ -17,7 +17,6 @@
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2017-2017 Fred N. van Kempen.
* Copyright 2017-2017 Overdoze.
*
* NOTE: Forcing config files to be in Unicode encoding breaks it on
* Windows XP, and possibly also Vista. Use -DANSI_CFG for use
@@ -36,26 +35,26 @@
#include "fdc.h"
#include "fdd.h"
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "gameport.h"
#include "ide.h"
#include "hdd.h"
#include "model.h"
#include "mouse.h"
#include "network/network.h"
#include "NETWORK/network.h"
#include "nvr.h"
#include "scsi.h"
#include "win/plat_joystick.h"
#include "win/plat_midi.h"
#include "sound/midi.h"
#include "sound/snd_dbopl.h"
#include "sound/snd_mpu401.h"
#include "sound/snd_opl.h"
#include "sound/sound.h"
#include "video/video.h"
#include "WIN/plat_joystick.h"
#include "WIN/plat_midi.h"
#include "SOUND/midi.h"
#include "SOUND/snd_dbopl.h"
#include "SOUND/snd_mpu401.h"
#include "SOUND/snd_opl.h"
#include "SOUND/sound.h"
#include "VIDEO/video.h"
#include "win/win.h"
#include "win/win_language.h"
#include "WIN/win.h"
#include "WIN/win_language.h"
wchar_t config_file_default[256];

View File

@@ -8,17 +8,20 @@
*
* Configuration file handler header.
*
* Version: @(#)config.h 1.0.0 2017/07/26
* Version: @(#)config.h 1.0.1 2017/08/23
*
* Authors: Sarah Walker,
* Miran Grca, <mgrca8@gmail.com>
* Fred N. van Kempen, <decwiz@yahoo.com>
* Overdoze,
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2017-2017 Fred N. van Kempen.
* Copyright 2017-2017 Overdoze.
* Copyright 2016,2017 Miran Grca.
* Copyright 2017 Fred N. van Kempen.
*/
#ifndef EMU_CONFIG_H
# define EMU_CONFIG_H
extern wchar_t config_file_default[256];
@@ -60,3 +63,6 @@ extern void saveconfig(void);
#ifdef __cplusplus
}
#endif
#endif /*EMU_CONFIG_H*/

View File

@@ -17,11 +17,11 @@
* Copyright 2016-2017 Miran Grca.
*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "config.h"
#include "device.h"
#include "model.h"
#include "sound/sound.h"
#include "SOUND/sound.h"
static void *device_priv[256];

View File

@@ -9,12 +9,12 @@
* Implementation of the generic device interface to handle
* all devices attached to the emulator.
*
* Version: @(#)device.h 1.0.1 2017/06/03
* Version: @(#)device.h 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2016 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_DEVICE_H
# define EMU_DEVICE_H

View File

@@ -9,12 +9,12 @@
* Generic floppy disk interface that communicates with the
* other handlers.
*
* Version: @(#)disc.h 1.0.1 2017/06/03
* Version: @(#)disc.h 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_DISC_H
# define EMU_DISC_H

View File

@@ -10,7 +10,7 @@
* data in the form of FM/MFM-encoded transitions) which also
* forms the core of the emulator's floppy disk emulation.
*
* Version: @(#)disc_86f.c 1.0.0 2017/05/30
* Version: @(#)disc_86f.c 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
@@ -24,7 +24,7 @@
#include <assert.h>
#include <wchar.h>
#include "lzf/lzf.h"
#include "LZF/lzf.h"
#include "config.h"
#include "dma.h"

View File

@@ -10,30 +10,33 @@
* data in the form of FM/MFM-encoded transitions) which also
* forms the core of the emulator's floppy disk emulation.
*
* Version: @(#)disc_86f.h 1.0.0 2017/05/30
* Version: @(#)disc_86f.h 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
*/
#ifndef EMU_DISC_86F_H
# define EMU_DISC_86F_H
void d86f_init();
void d86f_load(int drive, wchar_t *fn);
void d86f_close(int drive);
void d86f_seek(int drive, int track);
int d86f_hole(int drive);
double d86f_byteperiod(int drive);
void d86f_stop(int drive);
void d86f_poll();
int d86f_realtrack(int track, int drive);
void d86f_reset(int drive, int side);
void d86f_readsector(int drive, int sector, int track, int side, int density, int sector_size);
void d86f_writesector(int drive, int sector, int track, int side, int density, int sector_size);
void d86f_comparesector(int drive, int sector, int track, int side, int rate, int sector_size);
void d86f_readaddress(int drive, int side, int density);
void d86f_format(int drive, int side, int density, uint8_t fill);
void d86f_prepare_track_layout(int drive, int side);
void d86f_set_version(int drive, uint16_t version);
extern void d86f_init(void);
extern void d86f_load(int drive, wchar_t *fn);
extern void d86f_close(int drive);
extern void d86f_seek(int drive, int track);
extern int d86f_hole(int drive);
extern double d86f_byteperiod(int drive);
extern void d86f_stop(int drive);
extern void d86f_poll(int drive);
extern int d86f_realtrack(int track, int drive);
extern void d86f_reset(int drive, int side);
extern void d86f_readsector(int drive, int sector, int track, int side, int density, int sector_size);
extern void d86f_writesector(int drive, int sector, int track, int side, int density, int sector_size);
extern void d86f_comparesector(int drive, int sector, int track, int side, int rate, int sector_size);
extern void d86f_readaddress(int drive, int side, int density);
extern void d86f_format(int drive, int side, int density, uint8_t fill);
extern void d86f_prepare_track_layout(int drive, int side);
extern void d86f_set_version(int drive, uint16_t version);
#define length_gap0 80
#define length_gap1 50
@@ -63,5 +66,8 @@ extern int gap4_size[2];
#define D86FVER 0x020B
void d86f_initialize_last_sector_id(int drive, int c, int h, int r, int n);
void d86f_zero_bit_field(int drive, int side);
extern void d86f_initialize_last_sector_id(int drive, int c, int h, int r, int n);
extern void d86f_zero_bit_field(int drive, int side);
#endif /*EMU_DISC_86F_H*/

View File

@@ -9,24 +9,30 @@
* Implementation of the FDI floppy stream image format
* interface to the FDI2RAW module.
*
* Version: @(#)disc_fdi.h 1.0.0 2017/05/30
* Version: @(#)disc_fdi.h 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_DISC_FDI_H
# define EMU_DISC_FDI_H
void fdi_init();
void fdi_load(int drive, wchar_t *fn);
void fdi_close(int drive);
void fdi_seek(int drive, int track);
void fdi_readsector(int drive, int sector, int track, int side, int density, int sector_size);
void fdi_writesector(int drive, int sector, int track, int side, int density, int sector_size);
void fdi_comparesector(int drive, int sector, int track, int side, int density, int sector_size);
void fdi_readaddress(int drive, int sector, int side, int density);
void fdi_format(int drive, int sector, int side, int density, uint8_t fill);
int fdi_hole(int drive);
double fdi_byteperiod(int drive);
void fdi_stop();
void fdi_poll();
extern void fdi_init(void);
extern void fdi_load(int drive, wchar_t *fn);
extern void fdi_close(int drive);
extern void fdi_seek(int drive, int track);
extern void fdi_readsector(int drive, int sector, int track, int side, int density, int sector_size);
extern void fdi_writesector(int drive, int sector, int track, int side, int density, int sector_size);
extern void fdi_comparesector(int drive, int sector, int track, int side, int density, int sector_size);
extern void fdi_readaddress(int drive, int sector, int side, int density);
extern void fdi_format(int drive, int sector, int side, int density, uint8_t fill);
extern int fdi_hole(int drive);
extern double fdi_byteperiod(int drive);
extern void fdi_stop(void);
extern void fdi_poll(void);
#endif /*EMU_DISC_FDI_H*/

View File

@@ -8,13 +8,19 @@
*
* Implementation of the IMD floppy image format.
*
* Version: @(#)disc_imd.h 1.0.0 2017/05/30
* Version: @(#)disc_imd.h 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_DISK_IMD_H
# define EMU_DISK_IMD_H
void imd_init();
void imd_load(int drive, wchar_t *fn);
void imd_close(int drive);
void imd_seek(int drive, int track);
extern void imd_init(void);
extern void imd_load(int drive, wchar_t *fn);
extern void imd_close(int drive);
extern void imd_seek(int drive, int track);
#endif /*EMU_DISK_IMD_H*/

View File

@@ -9,15 +9,21 @@
* Implementation of the raw sector-based floppy image format,
* as well as the Japanese FDI, CopyQM, and FDF formats.
*
* Version: @(#)disc_img.h 1.0.0 2017/05/30
* Version: @(#)disc_img.h 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_DISC_IMG_H
# define EMU_DISC_IMG_H
void img_init();
void img_load(int drive, wchar_t *fn);
void img_close(int drive);
void img_seek(int drive, int track);
extern void img_init(void);
extern void img_load(int drive, wchar_t *fn);
extern void img_close(int drive);
extern void img_seek(int drive, int track);
#endif /*EMU_DISC_IMG_H*/

View File

@@ -9,11 +9,17 @@
* A better random number generation, used for floppy weak bits
* and network MAC address generation.
*
* Version: @(#)disc_random.h 1.0.0 2017/05/30
* Version: @(#)disc_random.h 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_DISC_RANDOM_H
# define EMU_DISC_RANDOM_H
uint8_t disc_random_generate();
void disc_random_init();
extern uint8_t disc_random_generate(void);
extern void disc_random_init(void);
#endif /*EMU_DISC_RANDOM_H*/

View File

@@ -6,11 +6,11 @@
*
* This file is part of the 86Box distribution.
*
* Implementation of the Teledisk floppy image format.
*
* Version: @(#)disc_td0.c 1.0.0 2017/05/30
* Implementation of the Teledisk floppy image format.
*
* Author: Milodrag Milanovic,
* Version: @(#)disc_td0.c 1.0.1 2017/08/23
*
* Authors: Milodrag Milanovic,
* Haruhiko OKUMURA,
* Haruyasu YOSHIZAKI,
* Kenji RIKITAKE,

View File

@@ -8,9 +8,9 @@
*
* Implementation of the Teledisk floppy image format.
*
* Version: @(#)disc_td0.h 1.0.0 2017/05/30
* Version: @(#)disc_td0.h 1.0.1 2017/08/23
*
* Author: Milodrag Milanovic,
* Authors: Milodrag Milanovic,
* Haruhiko OKUMURA,
* Haruyasu YOSHIZAKI,
* Kenji RIKITAKE,
@@ -19,10 +19,16 @@
* Copyright 1988-2017 Haruyasu YOSHIZAKI.
* Copyright 1988-2017 Kenji RIKITAKE.
* Copyright 2013-2017 Milodrag Milanovic.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_DISC_TD0_H
# define EMU_DISC_TD0_H
void td0_init();
void td0_load(int drive, wchar_t *fn);
void td0_close(int drive);
void td0_seek(int drive, int track);
extern void td0_init(void);
extern void td0_load(int drive, wchar_t *fn);
extern void td0_close(int drive);
extern void td0_seek(int drive, int track);
#endif /*EMU_DISC_TD0_H*/

View File

@@ -8,7 +8,7 @@
*
* Implementation of the Intel DMA controllers.
*
* Version: @(#)dma.c 1.0.1 2017/06/03
* Version: @(#)dma.c 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -16,7 +16,7 @@
* Copyright 2016-2017 Miran Grca.
*/
#include "ibm.h"
#include "cpu/x86.h"
#include "CPU/x86.h"
#include "mem.h"
#include "io.h"
#include "dma.h"

View File

@@ -8,12 +8,12 @@
*
* Implementation of the Intel DMA controllers.
*
* Version: @(#)dma.h 1.0.1 2017/06/03
* Version: @(#)dma.h 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_DMA_H
# define EMU_DMA_H

View File

@@ -9,14 +9,13 @@
* Implementation of the NEC uPD-765 and compatible floppy disk
* controller.
*
* Version: @(#)fdc.c 1.0.0 2017/05/30
* Version: @(#)fdc.c 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
*/
#include <stdarg.h>
#include <stdio.h>
#include <string.h>

134
src/fdc.h
View File

@@ -9,78 +9,84 @@
* Implementation of the NEC uPD-765 and compatible floppy disk
* controller.
*
* Version: @(#)fdc.h 1.0.0 2017/05/30
* Version: @(#)fdc.h 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_FDC_H
# define EMU_FDC_H
void fdc_init();
void fdc_add();
void fdc_add_for_superio();
void fdc_add_pcjr();
void fdc_add_tandy();
void fdc_remove();
void fdc_reset();
void fdc_poll();
void fdc_abort();
void fdc_discchange_clear(int drive);
void fdc_set_dskchg_activelow();
void fdc_3f1_enable(int enable);
void fdc_set_ps1();
int fdc_get_bit_rate();
int fdc_get_bitcell_period();
extern void fdc_init(void);
extern void fdc_add(void);
extern void fdc_add_for_superio(void);
extern void fdc_add_pcjr(void);
extern void fdc_add_tandy(void);
extern void fdc_remove(void);
extern void fdc_reset(void);
extern void fdc_poll(void);
extern void fdc_abort(void);
extern void fdc_discchange_clear(int drive);
extern void fdc_set_dskchg_activelow(void);
extern void fdc_3f1_enable(int enable);
extern void fdc_set_ps1(void);
extern int fdc_get_bit_rate(void);
extern int fdc_get_bitcell_period(void);
/* A few functions to communicate between Super I/O chips and the FDC. */
void fdc_update_is_nsc(int is_nsc);
void fdc_update_max_track(int max_track);
void fdc_update_enh_mode(int enh_mode);
int fdc_get_rwc(int drive);
void fdc_update_rwc(int drive, int rwc);
int fdc_get_boot_drive();
void fdc_update_boot_drive(int boot_drive);
void fdc_update_densel_polarity(int densel_polarity);
uint8_t fdc_get_densel_polarity();
void fdc_update_densel_force(int densel_force);
void fdc_update_drvrate(int drive, int drvrate);
void fdc_update_drv2en(int drv2en);
extern void fdc_update_is_nsc(int is_nsc);
extern void fdc_update_max_track(int max_track);
extern void fdc_update_enh_mode(int enh_mode);
extern int fdc_get_rwc(int drive);
extern void fdc_update_rwc(int drive, int rwc);
extern int fdc_get_boot_drive(void);
extern void fdc_update_boot_drive(int boot_drive);
extern void fdc_update_densel_polarity(int densel_polarity);
extern uint8_t fdc_get_densel_polarity(void);
extern void fdc_update_densel_force(int densel_force);
extern void fdc_update_drvrate(int drive, int drvrate);
extern void fdc_update_drv2en(int drv2en);
void fdc_noidam();
void fdc_nosector();
void fdc_nodataam();
void fdc_cannotformat();
void fdc_wrongcylinder();
void fdc_badcylinder();
extern void fdc_noidam(void);
extern void fdc_nosector(void);
extern void fdc_nodataam(void);
extern void fdc_cannotformat(void);
extern void fdc_wrongcylinder(void);
extern void fdc_badcylinder(void);
sector_id_t fdc_get_read_track_sector();
int fdc_get_compare_condition();
int fdc_is_deleted();
int fdc_is_sk();
void fdc_set_wrong_am();
int fdc_get_drive();
int fdc_get_perp();
int fdc_get_format_n();
int fdc_is_mfm();
double fdc_get_hut();
double fdc_get_hlt();
void fdc_request_next_sector_id();
void fdc_stop_id_request();
int fdc_get_gap();
int fdc_get_gap2(int drive);
int fdc_get_dtl();
int fdc_get_format_sectors();
extern sector_id_t fdc_get_read_track_sector(void);
extern int fdc_get_compare_condition(void);
extern int fdc_is_deleted(void);
extern int fdc_is_sk(void);
extern void fdc_set_wrong_am(void);
extern int fdc_get_drive(void);
extern int fdc_get_perp(void);
extern int fdc_get_format_n(void);
extern int fdc_is_mfm(void);
extern double fdc_get_hut(void);
extern double fdc_get_hlt(void);
extern void fdc_request_next_sector_id(void);
extern void fdc_stop_id_request(void);
extern int fdc_get_gap(void);
extern int fdc_get_gap2(int drive);
extern int fdc_get_dtl(void);
extern int fdc_get_format_sectors(void);
void fdc_finishcompare(int satisfying);
void fdc_finishread();
void fdc_sector_finishcompare(int satisfying);
void fdc_sector_finishread();
void fdc_track_finishread(int condition);
int fdc_is_verify();
extern void fdc_finishcompare(int satisfying);
extern void fdc_finishread(void);
extern void fdc_sector_finishcompare(int satisfying);
extern void fdc_sector_finishread(void);
extern void fdc_track_finishread(int condition);
extern int fdc_is_verify(void);
int real_drive(int drive);
void fdc_overrun();
void fdc_set_base(int base, int super_io);
int fdc_ps1_525();
void fdc_hard_reset();
extern int real_drive(int drive);
extern void fdc_overrun(void);
extern void fdc_set_base(int base, int super_io);
extern int fdc_ps1_525(void);
extern void fdc_hard_reset(void);
#endif /*EMU_FDC_H*/

View File

@@ -8,14 +8,13 @@
*
* Implementation of the SMC FDC37C665 Super I/O Chip.
*
* Version: @(#)fdc37c665.c 1.0.0 2017/05/30
* Version: @(#)fdc37c665.c 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
*/
#include "ibm.h"
#include "disc.h"

View File

@@ -8,12 +8,12 @@
*
* Implementation of the SMC FDC37C665 Super I/O Chip.
*
* Version: @(#)fdc37c665.h 1.0.0 2017/05/30
* Version: @(#)fdc37c665.h 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
extern void fdc37c665_init();
extern void fdc37c665_init(void);

View File

@@ -8,10 +8,10 @@
*
* Implementation of the SMC FDC37C669 Super I/O Chip.
*
* Version: @(#)fdc37c669.h 1.0.0 2017/05/30
* Version: @(#)fdc37c669.h 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
extern void fdc37c669_init();
extern void fdc37c669_init(void);

View File

@@ -8,10 +8,10 @@
*
* Implementation of the SMC FDC37C932FR Super I/O Chip.
*
* Version: @(#)fdc37c932fr.h 1.0.0 2017/05/30
* Version: @(#)fdc37c932fr.h 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
extern void fdc37c932fr_init();
extern void fdc37c932fr_init(void);

View File

@@ -8,19 +8,19 @@
*
* Implementation of the floppy drive emulation.
*
* Version: @(#)fdd.c 1.0.0 2017/05/30
* Version: @(#)fdd.c 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
*/
#include "ibm.h"
#include "disc.h"
#include "fdc.h"
#include "fdd.h"
static struct
{
int type;

View File

@@ -8,48 +8,57 @@
*
* Implementation of the floppy drive emulation.
*
* Version: @(#)fdd.h 1.0.0 2017/05/30
* Version: @(#)fdd.h 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_FDD_H
# define EMU_FDD_H
#define SEEK_RECALIBRATE -999
void fdd_forced_seek(int drive, int track_diff);
void fdd_seek(int drive, int track_diff);
int fdd_track0(int drive);
int fdd_getrpm(int drive);
void fdd_set_densel(int densel);
int fdd_can_read_medium(int drive);
int fdd_doublestep_40(int drive);
int fdd_is_525(int drive);
int fdd_is_dd(int drive);
int fdd_is_ed(int drive);
int fdd_is_double_sided(int drive);
void fdd_set_head(int drive, int head);
int fdd_get_head(int drive);
void fdd_set_turbo(int drive, int turbo);
int fdd_get_turbo(int drive);
void fdd_set_check_bpb(int drive, int check_bpb);
int fdd_get_check_bpb(int drive);
void fdd_set_type(int drive, int type);
int fdd_get_type(int drive);
int fdd_get_flags(int drive);
extern int fdd_swap;
void fdd_init();
int fdd_get_densel(int drive);
void fdd_setswap(int swap);
extern void fdd_forced_seek(int drive, int track_diff);
extern void fdd_seek(int drive, int track_diff);
extern int fdd_track0(int drive);
extern int fdd_getrpm(int drive);
extern void fdd_set_densel(int densel);
extern int fdd_can_read_medium(int drive);
extern int fdd_doublestep_40(int drive);
extern int fdd_is_525(int drive);
extern int fdd_is_dd(int drive);
extern int fdd_is_ed(int drive);
extern int fdd_is_double_sided(int drive);
extern void fdd_set_head(int drive, int head);
extern int fdd_get_head(int drive);
extern void fdd_set_turbo(int drive, int turbo);
extern int fdd_get_turbo(int drive);
extern void fdd_set_check_bpb(int drive, int check_bpb);
extern int fdd_get_check_bpb(int drive);
char *fdd_getname(int type);
extern void fdd_set_type(int drive, int type);
extern int fdd_get_type(int drive);
char *fdd_get_internal_name(int type);
int fdd_get_from_internal_name(char *s);
extern int fdd_get_flags(int drive);
int fdd_track(int drive);
extern void fdd_init(void);
extern int fdd_get_densel(int drive);
extern void fdd_setswap(int swap);
extern char *fdd_getname(int type);
extern char *fdd_get_internal_name(int type);
extern int fdd_get_from_internal_name(char *s);
extern int fdd_track(int drive);
#endif /*EMU_FDD_H*/

View File

@@ -4,7 +4,7 @@
#include <stdint.h>
#include <stdlib.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "device.h"
#include "io.h"
#include "timer.h"

View File

@@ -1,13 +1,17 @@
/* Copyright holders: Sarah Walker
see COPYING for more details
*/
extern device_t gameport_device;
extern device_t gameport_201_device;
#ifndef EMU_GAMEPORT_H
# define EMU_GAMEPORT_H
#define AXIS_NOT_PRESENT -99999
typedef struct
{
char name[80];
void *(*init)();
void *(*init)(void);
void (*close)(void *p);
uint8_t (*read)(void *p);
void (*write)(void *p);
@@ -20,16 +24,22 @@ typedef struct
char pov_names[4][32];
} joystick_if_t;
extern device_t gameport_device;
extern device_t gameport_201_device;
extern int joystick_type;
char *joystick_get_name(int joystick);
int joystick_get_max_joysticks(int joystick);
int joystick_get_axis_count(int joystick);
int joystick_get_button_count(int joystick);
int joystick_get_pov_count(int joystick);
char *joystick_get_axis_name(int joystick, int id);
char *joystick_get_button_name(int joystick, int id);
char *joystick_get_pov_name(int joystick, int id);
void gameport_update_joystick_type();
#define AXIS_NOT_PRESENT -99999
extern char *joystick_get_name(int joystick);
extern int joystick_get_max_joysticks(int joystick);
extern int joystick_get_axis_count(int joystick);
extern int joystick_get_button_count(int joystick);
extern int joystick_get_pov_count(int joystick);
extern char *joystick_get_axis_name(int joystick, int id);
extern char *joystick_get_button_name(int joystick, int id);
extern char *joystick_get_pov_name(int joystick, int id);
extern void gameport_update_joystick_type(void);
#endif /*EMU_GAMEPORT_H*/

View File

@@ -10,13 +10,13 @@
#include "mfm_xebec.h"
#include "xtide.h"
char hdd_controller_name[16];
hard_disk_t hdc[HDC_NUM];
static device_t null_hdd_device;
static int hdd_controller_current;
hard_disk_t hdc[HDC_NUM];
static struct
{

View File

@@ -1,8 +1,16 @@
char *hdd_controller_get_name(int hdd);
char *hdd_controller_get_internal_name(int hdd);
int hdd_controller_get_flags(int hdd);
int hdd_controller_available(int hdd);
int hdd_controller_current_is_mfm();
void hdd_controller_init(char *internal_name);
#ifndef EMU_HDD_H
# define EMU_HDD_H
extern char hdd_controller_name[16];
extern char *hdd_controller_get_name(int hdd);
extern char *hdd_controller_get_internal_name(int hdd);
extern int hdd_controller_get_flags(int hdd);
extern int hdd_controller_available(int hdd);
extern int hdd_controller_current_is_mfm(void);
extern void hdd_controller_init(char *internal_name);
#endif /*EMU_HDD_H*/

View File

@@ -1,3 +1,7 @@
#ifndef EMU_HDD_IMAGE_H
# define EMU_HDD_IMAGE_H
extern int hdd_image_load(int id);
extern void hdd_image_seek(uint8_t id, uint32_t sector);
extern void hdd_image_read(uint8_t id, uint32_t sector, uint32_t count, uint8_t *buffer);
@@ -11,3 +15,6 @@ extern uint8_t hdd_image_get_type(uint8_t id);
extern void hdd_image_specify(uint8_t id, uint64_t hpc, uint64_t spt);
extern void hdd_image_unload(uint8_t id, int fn_preserve);
extern void hdd_image_close(uint8_t id);
#endif /*EMU_HDD_IMAGE_H*/

View File

@@ -2,7 +2,7 @@
see COPYING for more details
*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "mem.h"
#include "device.h"

View File

@@ -8,7 +8,7 @@
*
* Implementation of the Intel 430FX PCISet chip.
*
* Version: @(#)i430fx.c 1.0.1 2017/06/17
* Version: @(#)i430fx.c 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -17,7 +17,7 @@
*/
#include <string.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "mem.h"
#include "pci.h"
#include "device.h"

View File

@@ -8,7 +8,7 @@
*
* Implementation of the Intel 430HX PCISet chip.
*
* Version: @(#)i430hx.c 1.0.1 2017/06/17
* Version: @(#)i430hx.c 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -17,7 +17,7 @@
*/
#include <string.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "mem.h"
#include "pci.h"

View File

@@ -8,7 +8,7 @@
*
* Implementation of the Intel 430LX PCISet chip.
*
* Version: @(#)i430lx.c 1.0.1 2017/06/17
* Version: @(#)i430lx.c 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -17,7 +17,7 @@
*/
#include <string.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "mem.h"
#include "pci.h"
#include "device.h"

View File

@@ -8,7 +8,7 @@
*
* Implementation of the Intel 430NX PCISet chip.
*
* Version: @(#)i430nx.c 1.0.1 2017/06/17
* Version: @(#)i430nx.c 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -17,7 +17,7 @@
*/
#include <string.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "mem.h"
#include "pci.h"
#include "device.h"

View File

@@ -8,7 +8,7 @@
*
* Implementation of the Intel 430VX PCISet chip.
*
* Version: @(#)i430vx.c 1.0.2 2017/06/17
* Version: @(#)i430vx.c 1.0.3 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -17,7 +17,7 @@
*/
#include <string.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "mem.h"
#include "pci.h"

View File

@@ -8,7 +8,7 @@
*
* Implementation of the Intel 440FX PCISet chip.
*
* Version: @(#)i440fx.c 1.0.1 2017/06/17
* Version: @(#)i440fx.c 1.0.2 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -17,7 +17,7 @@
*/
#include <string.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "mem.h"
#include "pci.h"

View File

@@ -1 +1 @@
void i82335_init();
extern void i82335_init(void);

View File

@@ -9,14 +9,14 @@
* Implementation of the IDE emulation for hard disks and ATAPI
* CD-ROM devices.
*
* Version: @(#)ide.h 1.0.0 2017/05/30
* Version: @(#)ide.h 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* TheCollector1995, <mariogplayer8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016-2017 TheCollector1995.
* Copyright 2016,2017 Miran Grca.
* Copyright 2016,2017 TheCollector1995.
*/
#ifndef EMU_IDE_H
# define EMU_IDE_H
@@ -63,42 +63,42 @@ extern int ideboard;
extern int ide_enable[5];
extern int ide_irq[5];
IDE ide_drives[IDE_NUM + XTIDE_NUM];
extern IDE ide_drives[IDE_NUM + XTIDE_NUM];
extern int idecallback[5];
extern void writeide(int ide_board, uint16_t addr, uint8_t val);
extern void writeidew(int ide_board, uint16_t val);
extern uint8_t readide(int ide_board, uint16_t addr);
extern uint16_t readidew(int ide_board);
extern void callbackide(int ide_board);
extern void resetide(void);
extern void ide_init(void);
extern void ide_xtide_init(void);
extern void ide_ter_init(void);
extern void ide_qua_init(void);
extern void ide_pri_enable(void);
extern void ide_sec_enable(void);
extern void ide_ter_enable(void);
extern void ide_qua_enable(void);
extern void ide_pri_disable(void);
extern void ide_sec_disable(void);
extern void ide_ter_disable(void);
extern void ide_qua_disable(void);
extern void ide_set_bus_master(int (*read)(int channel, uint8_t *data, int transfer_length), int (*write)(int channel, uint8_t *data, int transfer_length), void (*set_irq)(int channel));
void ide_irq_raise(IDE *ide);
void ide_irq_lower(IDE *ide);
void ide_padstr8(uint8_t *buf, int buf_size, const char *src);
extern void writeide(int ide_board, uint16_t addr, uint8_t val);
extern void writeidew(int ide_board, uint16_t val);
extern uint8_t readide(int ide_board, uint16_t addr);
extern uint16_t readidew(int ide_board);
extern void callbackide(int ide_board);
extern void resetide(void);
extern void ide_init(void);
extern void ide_xtide_init(void);
extern void ide_ter_init(void);
extern void ide_qua_init(void);
extern void ide_pri_enable(void);
extern void ide_sec_enable(void);
extern void ide_ter_enable(void);
extern void ide_qua_enable(void);
extern void ide_pri_disable(void);
extern void ide_sec_disable(void);
extern void ide_ter_disable(void);
extern void ide_qua_disable(void);
extern void ide_set_bus_master(int (*read)(int channel, uint8_t *data, int transfer_length), int (*write)(int channel, uint8_t *data, int transfer_length), void (*set_irq)(int channel));
void win_cdrom_eject(uint8_t id);
void win_cdrom_reload(uint8_t id);
extern void ide_irq_raise(IDE *ide);
extern void ide_irq_lower(IDE *ide);
void ide_pri_disable(void);
void ide_pri_enable_ex(void);
void ide_set_base(int controller, uint16_t port);
void ide_set_side(int controller, uint16_t port);
extern void ide_padstr8(uint8_t *buf, int buf_size, const char *src);
extern void win_cdrom_eject(uint8_t id);
extern void win_cdrom_reload(uint8_t id);
extern void ide_pri_disable(void);
extern void ide_pri_enable_ex(void);
extern void ide_set_base(int controller, uint16_t port);
extern void ide_set_side(int controller, uint16_t port);
#endif /*EMU_IDE_H*/

View File

@@ -2,7 +2,7 @@
see COPYING for more details
*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "mem.h"
#include "pit.h"

View File

@@ -1,5 +1,5 @@
/* Copyright holders: Sarah Walker
see COPYING for more details
*/
void intel_batman_init();
void intel_endeavor_init();
extern void intel_batman_init(void);
extern void intel_endeavor_init(void);

View File

@@ -8,9 +8,9 @@
*
* Implementation of the Intel 2 Mbit 8-bit flash devices.
*
* Version: @(#)intel_flash.c 1.0.0 2017/05/30
* Version: @(#)intel_flash.c 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.

View File

@@ -16,7 +16,7 @@ void (*port_outl[0x10000][2])(uint16_t addr, uint32_t val, void *priv);
void *port_priv[0x10000][2];
void io_init()
void io_init(void)
{
int c;
pclog("io_init\n");

View File

@@ -1,9 +1,9 @@
/* Copyright holders: Sarah Walker
see COPYING for more details
*/
void io_init();
extern void io_init(void);
void io_sethandler(uint16_t base, int size,
extern void io_sethandler(uint16_t base, int size,
uint8_t (*inb)(uint16_t addr, void *priv),
uint16_t (*inw)(uint16_t addr, void *priv),
uint32_t (*inl)(uint16_t addr, void *priv),
@@ -12,7 +12,7 @@ void io_sethandler(uint16_t base, int size,
void (*outl)(uint16_t addr, uint32_t val, void *priv),
void *priv);
void io_removehandler(uint16_t base, int size,
extern void io_removehandler(uint16_t base, int size,
uint8_t (*inb)(uint16_t addr, void *priv),
uint16_t (*inw)(uint16_t addr, void *priv),
uint32_t (*inl)(uint16_t addr, void *priv),

View File

@@ -4,7 +4,7 @@
#include <stdio.h>
#include <string.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "device.h"
#include "model.h"

View File

@@ -7,7 +7,7 @@
#include "plat_joystick.h"
static void *tm_fcs_init()
static void *tm_fcs_init(void)
{
return NULL;
}

View File

@@ -8,9 +8,9 @@
*
* Host to guest keyboard interface and keyboard scan code sets.
*
* Version: @(#)keyboard.c 1.0.0 2017/05/30
* Version: @(#)keyboard.c 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.

View File

@@ -8,22 +8,29 @@
*
* Host to guest keyboard interface and keyboard scan code sets.
*
* Version: @(#)keyboard.h 1.0.0 2017/05/30
* Version: @(#)keyboard.h 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_KEYBOARD_H
# define EMU_KEYBOARD_H
extern void (*keyboard_send)(uint8_t val);
extern void (*keyboard_poll)();
extern int keyboard_scan;
extern int pcem_key[272];
extern uint8_t mode;
void keyboard_process();
extern uint8_t set3_flags[272];
extern uint8_t set3_all_repeat;
extern uint8_t set3_all_break;
extern void (*keyboard_send)(uint8_t val);
extern void (*keyboard_poll)(void);
extern void keyboard_process(void);
#endif /*EMU_KEYBOARD_H*/

View File

@@ -8,8 +8,8 @@
#include "pic.h"
#include "pit.h"
#include "timer.h"
#include "sound/sound.h"
#include "sound/snd_speaker.h"
#include "SOUND/sound.h"
#include "SOUND/snd_speaker.h"
#include "keyboard.h"
#include "keyboard_amstrad.h"
@@ -37,7 +37,7 @@ static int key_queue_start = 0, key_queue_end = 0;
static uint8_t amstrad_systemstat_1, amstrad_systemstat_2;
void keyboard_amstrad_poll()
void keyboard_amstrad_poll(void)
{
keybsenddelay += (1000 * TIMER_USEC);
if (keyboard_amstrad.wantirq)
@@ -156,14 +156,14 @@ uint8_t keyboard_amstrad_read(uint16_t port, void *priv)
return temp;
}
void keyboard_amstrad_reset()
void keyboard_amstrad_reset(void)
{
keyboard_amstrad.wantirq = 0;
keyboard_scan = 1;
}
void keyboard_amstrad_init()
void keyboard_amstrad_init(void)
{
pclog("keyboard_amstrad_init\n");
io_sethandler(0x0060, 0x0006, keyboard_amstrad_read, NULL, NULL, keyboard_amstrad_write, NULL, NULL, NULL);
@@ -171,5 +171,5 @@ void keyboard_amstrad_init()
keyboard_send = keyboard_amstrad_adddata;
keyboard_poll = keyboard_amstrad_poll;
timer_add(keyboard_amstrad_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
timer_add((void (*)(void *))keyboard_amstrad_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
}

View File

@@ -1,6 +1,6 @@
/* Copyright holders: Sarah Walker
see COPYING for more details
*/
void keyboard_amstrad_init();
void keyboard_amstrad_reset();
void keyboard_amstrad_poll();
extern void keyboard_amstrad_init(void);
extern void keyboard_amstrad_reset(void);
extern void keyboard_amstrad_poll(void);

View File

@@ -8,14 +8,13 @@
*
* Intel 8042 (AT keyboard controller) emulation.
*
* Version: @(#)keyboard_at.c 1.0.0 2017/05/30
* Version: @(#)keyboard_at.c 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
*/
#include <stdint.h>
#include "ibm.h"
#include "io.h"
@@ -25,8 +24,8 @@
#include "timer.h"
#include "disc.h"
#include "fdc.h"
#include "sound/sound.h"
#include "sound/snd_speaker.h"
#include "SOUND/sound.h"
#include "SOUND/snd_speaker.h"
#include "keyboard.h"
#include "keyboard_at.h"
@@ -143,7 +142,7 @@ static uint8_t nont_to_t[256] = { 0xFF, 0x43, 0x41, 0x3F, 0x3D, 0x3B, 0x3C, 0x58
0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF,
0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF };
void keyboard_at_poll()
static void keyboard_at_poll(void)
{
keybsenddelay += (1000 * TIMER_USEC);
@@ -775,7 +774,7 @@ uint8_t keyboard_at_read(uint16_t port, void *priv)
return temp;
}
void keyboard_at_reset()
void keyboard_at_reset(void)
{
keyboard_at.initialised = 0;
keyboard_at.status = STAT_LOCK | STAT_CD;
@@ -805,7 +804,7 @@ static void at_refresh(void *p)
keyboard_at.refresh_time += PS2_REFRESH_TIME;
}
void keyboard_at_init()
void keyboard_at_init(void)
{
io_sethandler(0x0060, 0x0005, keyboard_at_read, NULL, NULL, keyboard_at_write, NULL, NULL, NULL);
keyboard_at_reset();
@@ -816,7 +815,7 @@ void keyboard_at_init()
keyboard_at.is_ps2 = 0;
dtrans = 0;
timer_add(keyboard_at_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
timer_add((void (*)(void *))keyboard_at_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
}
void keyboard_at_set_mouse(void (*mouse_write)(uint8_t val, void *p), void *p)
@@ -825,7 +824,7 @@ void keyboard_at_set_mouse(void (*mouse_write)(uint8_t val, void *p), void *p)
keyboard_at.mouse_p = p;
}
void keyboard_at_init_ps2()
void keyboard_at_init_ps2(void)
{
timer_add(at_refresh, &keyboard_at.refresh_time, TIMER_ALWAYS_ENABLED, NULL);
keyboard_at.is_ps2 = 1;

View File

@@ -8,21 +8,22 @@
*
* Intel 8042 (AT keyboard controller) emulation.
*
* Version: @(#)keyboard_at.h 1.0.0 2017/05/30
* Version: @(#)keyboard_at.h 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
void keyboard_at_init();
void keyboard_at_init_ps2();
void keyboard_at_reset();
void keyboard_at_poll();
void keyboard_at_adddata_keyboard_raw(uint8_t val);
void keyboard_at_adddata_mouse(uint8_t val);
void keyboard_at_set_mouse(void (*mouse_write)(uint8_t val, void *p), void *p);
extern int mouse_queue_start, mouse_queue_end;
extern int mouse_scan;
extern void keyboard_at_init(void);
extern void keyboard_at_init_ps2(void);
extern void keyboard_at_reset(void);
extern void keyboard_at_adddata_keyboard_raw(uint8_t val);
extern void keyboard_at_adddata_mouse(uint8_t val);
extern void keyboard_at_set_mouse(void (*mouse_write)(uint8_t val, void *p), void *p);

View File

@@ -6,8 +6,8 @@
#include "pit.h"
#include "timer.h"
#include "mouse.h"
#include "sound/sound.h"
#include "sound/snd_speaker.h"
#include "SOUND/sound.h"
#include "SOUND/snd_speaker.h"
#include "keyboard.h"
#include "keyboard_olim24.h"
@@ -42,7 +42,8 @@ static int key_queue_start = 0, key_queue_end = 0;
static uint8_t mouse_scancodes[7];
void keyboard_olim24_poll()
static void keyboard_olim24_poll(void)
{
keybsenddelay += (1000 * TIMER_USEC);
if (keyboard_olim24.wantirq)
@@ -62,6 +63,7 @@ void keyboard_olim24_poll()
}
}
void keyboard_olim24_adddata(uint8_t val)
{
key_queue[key_queue_end] = val;
@@ -70,7 +72,8 @@ void keyboard_olim24_adddata(uint8_t val)
return;
}
void keyboard_olim24_write(uint16_t port, uint8_t val, void *priv)
static void keyboard_olim24_write(uint16_t port, uint8_t val, void *priv)
{
pclog("keyboard_olim24 : write %04X %02X\n", port, val);
/* if (ram[8] == 0xc3)
@@ -155,7 +158,8 @@ void keyboard_olim24_write(uint16_t port, uint8_t val, void *priv)
}
}
uint8_t keyboard_olim24_read(uint16_t port, void *priv)
static uint8_t keyboard_olim24_read(uint16_t port, void *priv)
{
uint8_t temp = 0xff;
switch (port)
@@ -191,7 +195,8 @@ uint8_t keyboard_olim24_read(uint16_t port, void *priv)
return temp;
}
void keyboard_olim24_reset()
void keyboard_olim24_reset(void)
{
keyboard_olim24.status = STAT_LOCK | STAT_CD;
keyboard_olim24.wantirq = 0;
@@ -304,7 +309,8 @@ uint8_t mouse_olim24_poll(int x, int y, int z, int b, void *p)
return(0);
}
static void *mouse_olim24_init()
static void *mouse_olim24_init(void)
{
mouse_olim24_t *mouse = (mouse_olim24_t *)malloc(sizeof(mouse_olim24_t));
memset(mouse, 0, sizeof(mouse_olim24_t));
@@ -312,6 +318,7 @@ static void *mouse_olim24_init()
return mouse;
}
static void mouse_olim24_close(void *p)
{
mouse_olim24_t *mouse = (mouse_olim24_t *)p;
@@ -319,6 +326,7 @@ static void mouse_olim24_close(void *p)
free(mouse);
}
mouse_t mouse_olim24 =
{
"Olivetti M24 mouse",
@@ -329,7 +337,7 @@ mouse_t mouse_olim24 =
mouse_olim24_poll
};
void keyboard_olim24_init()
void keyboard_olim24_init(void)
{
io_sethandler(0x0060, 0x0002, keyboard_olim24_read, NULL, NULL, keyboard_olim24_write, NULL, NULL, NULL);
io_sethandler(0x0064, 0x0001, keyboard_olim24_read, NULL, NULL, keyboard_olim24_write, NULL, NULL, NULL);
@@ -337,5 +345,5 @@ void keyboard_olim24_init()
keyboard_send = keyboard_olim24_adddata;
keyboard_poll = keyboard_olim24_poll;
timer_add(keyboard_olim24_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
timer_add((void(*)(void *))keyboard_olim24_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
}

View File

@@ -1,3 +1,2 @@
void keyboard_olim24_init();
void keyboard_olim24_reset();
void keyboard_olim24_poll();
extern void keyboard_olim24_init(void);
extern void keyboard_olim24_reset(void);

View File

@@ -10,9 +10,9 @@
#include "pit.h"
#include "timer.h"
#include "device.h"
#include "sound/sound.h"
#include "sound/snd_speaker.h"
#include "sound/snd_sn76489.h"
#include "SOUND/sound.h"
#include "SOUND/snd_speaker.h"
#include "SOUND/snd_sn76489.h"
#include "keyboard.h"
#include "keyboard_pcjr.h"
@@ -197,5 +197,5 @@ void keyboard_pcjr_init()
keyboard_send = keyboard_pcjr_adddata;
keyboard_poll = keyboard_pcjr_poll;
timer_add(keyboard_pcjr_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
timer_add((void (*)(void *))keyboard_pcjr_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
}

View File

@@ -1,6 +1,6 @@
/* Copyright holders: Sarah Walker
see COPYING for more details
*/
void keyboard_pcjr_init();
void keyboard_pcjr_reset();
void keyboard_pcjr_poll();
extern void keyboard_pcjr_init(void);
extern void keyboard_pcjr_reset(void);
extern void keyboard_pcjr_poll(void);

View File

@@ -10,8 +10,8 @@
#include "timer.h"
#include "device.h"
#include "tandy_eeprom.h"
#include "sound/sound.h"
#include "sound/snd_speaker.h"
#include "SOUND/sound.h"
#include "SOUND/Snd_speaker.h"
#include "keyboard.h"
#include "keyboard_xt.h"
@@ -39,7 +39,8 @@ struct
static uint8_t key_queue[16];
static int key_queue_start = 0, key_queue_end = 0;
void keyboard_xt_poll()
static void keyboard_xt_poll(void)
{
keybsenddelay += (1000 * TIMER_USEC);
if (key_queue_start != key_queue_end && !keyboard_xt.blocked)
@@ -60,7 +61,7 @@ void keyboard_xt_adddata(uint8_t val)
return;
}
void keyboard_xt_write(uint16_t port, uint8_t val, void *priv)
static void keyboard_xt_write(uint16_t port, uint8_t val, void *priv)
{
switch (port)
{
@@ -94,7 +95,7 @@ void keyboard_xt_write(uint16_t port, uint8_t val, void *priv)
}
}
uint8_t keyboard_xt_read(uint16_t port, void *priv)
static uint8_t keyboard_xt_read(uint16_t port, void *priv)
{
uint8_t temp;
switch (port)
@@ -151,14 +152,14 @@ uint8_t keyboard_xt_read(uint16_t port, void *priv)
return temp;
}
void keyboard_xt_reset()
void keyboard_xt_reset(void)
{
keyboard_xt.blocked = 0;
keyboard_scan = 1;
}
void keyboard_xt_init()
void keyboard_xt_init(void)
{
io_sethandler(0x0060, 0x0004, keyboard_xt_read, NULL, NULL, keyboard_xt_write, NULL, NULL, NULL);
keyboard_xt_reset();
@@ -166,10 +167,10 @@ void keyboard_xt_init()
keyboard_poll = keyboard_xt_poll;
keyboard_xt.tandy = 0;
timer_add(keyboard_xt_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
timer_add((void (*)(void *))keyboard_xt_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
}
void keyboard_tandy_init()
void keyboard_tandy_init(void)
{
io_sethandler(0x0060, 0x0004, keyboard_xt_read, NULL, NULL, keyboard_xt_write, NULL, NULL, NULL);
keyboard_xt_reset();
@@ -177,5 +178,5 @@ void keyboard_tandy_init()
keyboard_poll = keyboard_xt_poll;
keyboard_xt.tandy = (romset != ROM_TANDY) ? 1 : 0;
timer_add(keyboard_xt_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
timer_add((void (*)(void *))keyboard_xt_poll, &keybsenddelay, TIMER_ALWAYS_ENABLED, NULL);
}

View File

@@ -1,7 +1,6 @@
/* Copyright holders: Sarah Walker
see COPYING for more details
*/
void keyboard_xt_init();
void keyboard_tandy_init();
void keyboard_xt_reset();
void keyboard_xt_poll();
extern void keyboard_xt_init(void);
extern void keyboard_tandy_init(void);
extern void keyboard_xt_reset(void);

View File

@@ -1,6 +1,6 @@
/*This is the chipset used in the LaserXT series model*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "mem.h"
#include "device.h"

View File

@@ -3,12 +3,13 @@
*/
#include "ibm.h"
#include "io.h"
#include "lpt.h"
static uint8_t lpt1_dat, lpt2_dat, lpt3_dat;
static uint8_t lpt1_ctrl, lpt2_ctrl, lpt3_ctrl;
void lpt1_write(uint16_t port, uint8_t val, void *priv)
{
switch (port & 3)
@@ -83,7 +84,7 @@ uint8_t lpt3_read(uint16_t port, void *priv)
uint16_t lpt_addr[3] = { 0x378, 0x278, 0x3bc };
void lpt_init()
void lpt_init(void)
{
if (lpt_enabled)
{
@@ -102,7 +103,7 @@ void lpt1_init(uint16_t port)
lpt_addr[0] = port;
}
}
void lpt1_remove()
void lpt1_remove(void)
{
if (lpt_enabled)
{
@@ -117,7 +118,7 @@ void lpt2_init(uint16_t port)
lpt_addr[1] = port;
}
}
void lpt2_remove()
void lpt2_remove(void)
{
if (lpt_enabled)
{
@@ -125,7 +126,7 @@ void lpt2_remove()
}
}
void lpt2_remove_ams()
void lpt2_remove_ams(void)
{
if (lpt_enabled)
{
@@ -141,7 +142,7 @@ void lpt3_init(uint16_t port)
lpt_addr[2] = port;
}
}
void lpt3_remove()
void lpt3_remove(void)
{
if (lpt_enabled)
{

View File

@@ -1,11 +1,11 @@
/* Copyright holders: Sarah Walker
see COPYING for more details
*/
extern void lpt_init();
extern void lpt_init(void);
extern void lpt1_init(uint16_t port);
extern void lpt1_remove();
extern void lpt1_remove(void);
extern void lpt2_init(uint16_t port);
extern void lpt2_remove();
extern void lpt2_remove_ams();
extern void lpt2_remove(void);
extern void lpt2_remove_ams(void);
extern void lpt3_init(uint16_t port);
extern void lpt3_remove();
extern void lpt3_remove(void);

View File

@@ -1,15 +1,17 @@
#include "ibm.h"
#include "io.h"
#include "mem.h"
#include "mca.h"
void (*mca_card_write[8])(int addr, uint8_t val, void *priv);
uint8_t (*mca_card_read[8])(int addr, void *priv);
void *mca_priv[8];
static int mca_index;
static int mca_nr_cards;
void mca_init(int nr_cards)
{
int c;

View File

@@ -1,5 +1,5 @@
void mca_init(int nr_cards);
void mca_add(uint8_t (*read)(int addr, void *priv), void (*write)(int addr, uint8_t val, void *priv), void *priv);
void mca_set_index(int index);
uint8_t mca_read(uint16_t port);
void mca_write(uint16_t port, uint8_t val);
extern void mca_init(int nr_cards);
extern void mca_add(uint8_t (*read)(int addr, void *priv), void (*write)(int addr, uint8_t val, void *priv), void *priv);
extern void mca_set_index(int index);
extern uint8_t mca_read(uint16_t port);
extern void mca_write(uint16_t port, uint8_t val);

View File

@@ -3,10 +3,13 @@
It controls memory addressing and shadowing*/
#include "ibm.h"
int nextreg6;
uint8_t mcr22;
int mcrlock,mcrfirst;
void resetmcr()
void resetmcr(void)
{
mcrlock=0;
mcrfirst=1;

View File

@@ -10,15 +10,15 @@
#include <stdlib.h>
#include <string.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "cpu/x86_ops.h"
#include "cpu/x86.h"
#include "CPU/cpu.h"
#include "CPU/x86_ops.h"
#include "CPU/x86.h"
#include "config.h"
#include "io.h"
#include "mem.h"
#include "rom.h"
#include "cpu/codegen.h"
#include "video/video.h"
#include "CPU/codegen.h"
#include "VIDEO/video.h"
page_t *pages;

View File

@@ -9,17 +9,17 @@
* Emulation of the memory I/O scratch registers on ports 0xE1
* and 0xE2, used by just about any emulated machine.
*
* Version: @(#)memregs.c 1.0.0 2017/05/30
* Version: @(#)memregs.c 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
*/
#include "ibm.h"
#include "io.h"
#include "memregs.h"
static uint8_t mem_regs[16] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
static uint8_t mem_reg_ffff = 0;
@@ -44,14 +44,14 @@ uint8_t memregs_read(uint16_t port, void *priv)
return mem_regs[port & 0xf];
}
void memregs_init()
void memregs_init(void)
{
pclog("Memory Registers Init\n");
io_sethandler(0x00e1, 0x0002, memregs_read, NULL, NULL, memregs_write, NULL, NULL, NULL);
}
void powermate_memregs_init()
void powermate_memregs_init(void)
{
pclog("Memory Registers Init\n");

View File

@@ -9,11 +9,17 @@
* Emulation of the memory I/O scratch registers on ports 0xE1
* and 0xE2, used by just about any emulated machine.
*
* Version: @(#)memregs.h 1.0.0 2017/05/30
* Version: @(#)memregs.h 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
#ifndef EMU_MEMREGS_H
# define EMU_MEMREGS_H
extern void memregs_init();
void powermate_memregs_init();
extern void powermate_memregs_init(void);
extern void memregs_init(void);
#endif /*EMU_MEMREGS_H*/

View File

@@ -6,7 +6,6 @@
#include "io.h"
#include "pic.h"
#include "timer.h"
#include "mfm_at.h"

View File

@@ -10,9 +10,9 @@
#include "pic.h"
#include "rom.h"
#include "timer.h"
#include "mfm_xebec.h"
#define XEBEC_TIME (2000 * TIMER_USEC)
enum

View File

@@ -8,7 +8,7 @@
*
* Handling of the emulated machines.
*
* Version: @(#)model.c 1.0.5 2017/07/27
* Version: @(#)model.c 1.0.6 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -19,7 +19,7 @@
#include <stdio.h>
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "mem.h"
#include "rom.h"
@@ -58,17 +58,17 @@
#include "serial.h"
#include "sis85c471.h"
#include "sio.h"
#include "sound/snd_ps1.h"
#include "sound/snd_pssj.h"
#include "sound/snd_sn76489.h"
#include "SOUND/snd_ps1.h"
#include "SOUND/snd_pssj.h"
#include "SOUND/snd_sn76489.h"
#if 0
#include "superio_detect.h"
#endif
#include "tandy_eeprom.h"
#include "tandy_rom.h"
#include "um8669f.h"
#include "video/vid_pcjr.h"
#include "video/vid_tandy.h"
#include "VIDEO/vid_pcjr.h"
#include "VIDEO/vid_tandy.h"
#include "w83877f.h"
#include "wd76c10.h"
#include "xtide.h"

View File

@@ -8,7 +8,7 @@
*
* Common driver module for MOUSE devices.
*
* Version: @(#)mouse.c 1.0.5 2017/07/27
* Version: @(#)mouse.c 1.0.6 2017/08/23
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
@@ -18,7 +18,7 @@
* Copyright 2016-2017 Miran Grca.
*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "device.h"
#include "mouse.h"
#include "model.h"

View File

@@ -3,7 +3,7 @@
*/
/*This is the chipset used in the AMI 286 clone model*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "device.h"
#include "model.h"

View File

@@ -5,14 +5,17 @@
#include "io.h"
#include "nmi.h"
int nmi_mask;
void nmi_write(uint16_t port, uint8_t val, void *p)
{
nmi_mask = val & 0x80;
}
void nmi_init()
void nmi_init(void)
{
io_sethandler(0x00a0, 0x0001, NULL, NULL, NULL, nmi_write, NULL, NULL, NULL);
nmi_mask = 0;

View File

@@ -1,8 +1,8 @@
/* Copyright holders: Sarah Walker
see COPYING for more details
*/
void nmi_init();
void nmi_write(uint16_t port, uint8_t val, void *p);
extern int nmi_mask;
extern void nmi_init(void);
extern void nmi_write(uint16_t port, uint8_t val, void *p);

View File

@@ -34,17 +34,17 @@
#include "timer.h"
#include "rtc.h"
int oldmodel;
int nvrmask=63;
char nvrram[128];
int nvraddr;
int nvr_dosave = 0;
static int nvr_onesec_time = 0, nvr_onesec_cnt = 0;
static int rtctime;
void getnvrtime(void)
{
time_get(nvrram);

View File

@@ -2,7 +2,7 @@
see COPYING for more details
*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "device.h"
#include "model.h"

View File

@@ -252,7 +252,7 @@ Note: the block address is forced to be a multiple of the block size by
SeeAlso: #P0178,#P0187
*/
#include "ibm.h"
#include "cpu/cpu.h"
#include "CPU/cpu.h"
#include "io.h"
#include "mem.h"
#include "device.h"

View File

@@ -22,9 +22,9 @@
#include "86box.h"
#include "ibm.h"
#include "mem.h"
#include "cpu/cpu.h"
#include "cpu/x86_ops.h"
#include "cpu/codegen.h"
#include "CPU/cpu.h"
#include "CPU/x86_ops.h"
#include "CPU/codegen.h"
#include "dma.h"
#include "nvr.h"
#include "pic.h"
@@ -52,9 +52,9 @@
#include "cdrom_null.h"
#include "keyboard.h"
#include "keyboard_at.h"
#include "sound/midi.h"
#include "SOUND/midi.h"
#include "mouse.h"
#include "network/network.h"
#include "NETWORK/network.h"
#ifdef WALTJE
# define UNICODE
# include "plat_dir.h"
@@ -67,17 +67,17 @@
#include "plat_ui.h"
#include "scsi.h"
#include "serial.h"
#include "sound/sound.h"
#include "sound/snd_cms.h"
#include "sound/snd_dbopl.h"
#include "sound/snd_mpu401.h"
#include "sound/snd_opl.h"
#include "sound/snd_gus.h"
#include "sound/snd_sb.h"
#include "sound/snd_speaker.h"
#include "sound/snd_ssi2001.h"
#include "video/video.h"
#include "video/vid_voodoo.h"
#include "SOUND/sound.h"
#include "SOUND/snd_cms.h"
#include "SOUND/snd_dbopl.h"
#include "SOUND/snd_mpu401.h"
#include "SOUND/snd_opl.h"
#include "SOUND/snd_gus.h"
#include "SOUND/snd_sb.h"
#include "SOUND/snd_speaker.h"
#include "SOUND/snd_ssi2001.h"
#include "VIDEO/video.h"
#include "VIDEO/vid_voodoo.h"
wchar_t pcempath[512];

View File

@@ -9,10 +9,10 @@
* Emulation of the National Semiconductors PC87306 Super I/O
* chip.
*
* Version: @(#)pc87306.h 1.0.0 2017/05/30
* Version: @(#)pc87306.h 1.0.1 2017/08/23
*
* Author: Miran Grca, <mgrca8@gmail.com>
* Copyright 2016-2017 Miran Grca.
* Copyright 2016,2017 Miran Grca.
*/
extern void pc87306_init();
extern void pc87306_init(void);

View File

@@ -2,9 +2,9 @@
#include "io.h"
#include "mem.h"
#include "pic.h"
#include "pci.h"
void (*pci_card_write[32])(int func, int addr, uint8_t val, void *priv);
uint8_t (*pci_card_read[32])(int func, int addr, void *priv);
void *pci_priv[32];

View File

@@ -3,13 +3,14 @@
#include "pic.h"
#include "pit.h"
int output;
int intclear;
int keywaiting=0;
int pic_intpending;
PIC pic, pic2;
void pic_updatepending()
{
uint16_t temp_pending = 0;

View File

@@ -1,10 +1,10 @@
void pic_init();
void pic2_init();
void pic_reset();
extern void pic_init(void);
extern void pic2_init(void);
extern void pic_reset(void);
void picint(uint16_t num);
void picintlevel(uint16_t num);
void picintc(uint16_t num);
uint8_t picinterrupt();
void picclear(int num);
void dumppic();
extern void picint(uint16_t num);
extern void picintlevel(uint16_t num);
extern void picintc(uint16_t num);
extern uint8_t picinterrupt(void);
extern void picclear(int num);
extern void dumppic(void);

View File

@@ -8,9 +8,9 @@
*
* Emulation core dispatcher.
*
* Version: @(#)piix.c 1.0.0 2017/05/30
* Version: @(#)piix.c 1.0.1 2017/08/23
*
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Miran Grca, <mgrca8@gmail.com>
* Copyright 2008-2017 Sarah Walker.
* Copyright 2016-2017 Miran Grca.
@@ -29,16 +29,18 @@
#include "io.h"
#include "mem.h"
#include "pci.h"
#include "piix.h"
uint8_t piix_33 = 0;
static uint8_t piix_type = 1;
static uint8_t card_piix[256], card_piix_ide[256];
uint8_t piix_bus_master_read(uint16_t port, void *priv);
void piix_bus_master_write(uint16_t port, uint8_t val, void *priv);
static uint8_t piix_type = 1;
static uint8_t card_piix[256], card_piix_ide[256];
void piix_write(int func, int addr, uint8_t val, void *priv)
{

Some files were not shown because too many files have changed in this diff Show More