AltairZ80: Promote sim_imd.c to a top level simh library to be used as needed by various simulators
This commit is contained in:
parent
60a0cf7468
commit
defe5f07d9
5 changed files with 41 additions and 43 deletions
|
@ -42,7 +42,7 @@
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
AdditionalIncludeDirectories="./;../;../AltairZ80/"
|
AdditionalIncludeDirectories="./;../;../AltairZ80/"
|
||||||
PreprocessorDefinitions="NO_INLINE;_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;SIM_NEED_GIT_COMMIT_ID"
|
PreprocessorDefinitions="USE_SIM_IMD;NO_INLINE;_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;SIM_NEED_GIT_COMMIT_ID"
|
||||||
MinimalRebuild="true"
|
MinimalRebuild="true"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="1"
|
RuntimeLibrary="1"
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
InlineFunctionExpansion="1"
|
InlineFunctionExpansion="1"
|
||||||
OmitFramePointers="true"
|
OmitFramePointers="true"
|
||||||
AdditionalIncludeDirectories="./;../;../AltairZ80/"
|
AdditionalIncludeDirectories="./;../;../AltairZ80/"
|
||||||
PreprocessorDefinitions="NO_INLINE;_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;SIM_NEED_GIT_COMMIT_ID"
|
PreprocessorDefinitions="USE_SIM_IMD;NO_INLINE;_CRT_NONSTDC_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;SIM_NEED_GIT_COMMIT_ID"
|
||||||
StringPooling="true"
|
StringPooling="true"
|
||||||
RuntimeLibrary="0"
|
RuntimeLibrary="0"
|
||||||
EnableFunctionLevelLinking="true"
|
EnableFunctionLevelLinking="true"
|
||||||
|
@ -201,41 +201,6 @@
|
||||||
RelativePath="..\AltairZ80\altairz80_mhdsk.c"
|
RelativePath="..\AltairZ80\altairz80_mhdsk.c"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\AltairZ80\m68kcpu.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
|
|
||||||
<File
|
|
||||||
RelativePath="..\AltairZ80\m68kdasm.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
|
|
||||||
<File
|
|
||||||
RelativePath="..\AltairZ80\m68kopac.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
|
|
||||||
<File
|
|
||||||
RelativePath="..\AltairZ80\m68kopdm.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
|
|
||||||
<File
|
|
||||||
RelativePath="..\AltairZ80\m68kopnz.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
|
|
||||||
<File
|
|
||||||
RelativePath="..\AltairZ80\m68kops.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
|
|
||||||
<File
|
|
||||||
RelativePath="..\AltairZ80\m68ksim.c"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\AltairZ80\altairz80_net.c"
|
RelativePath="..\AltairZ80\altairz80_net.c"
|
||||||
>
|
>
|
||||||
|
@ -276,6 +241,34 @@
|
||||||
RelativePath="..\AltairZ80\insnsd.c"
|
RelativePath="..\AltairZ80\insnsd.c"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\AltairZ80\m68kcpu.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\AltairZ80\m68kdasm.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\AltairZ80\m68kopac.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\AltairZ80\m68kopdm.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\AltairZ80\m68kopnz.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\AltairZ80\m68kops.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\AltairZ80\m68ksim.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\AltairZ80\mfdc.c"
|
RelativePath="..\AltairZ80\mfdc.c"
|
||||||
>
|
>
|
||||||
|
@ -357,7 +350,7 @@
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\AltairZ80\sim_imd.c"
|
RelativePath="..\sim_imd.c"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
|
@ -421,6 +414,10 @@
|
||||||
RelativePath="..\sim_fio.h"
|
RelativePath="..\sim_fio.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\sim_imd.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\sim_rev.h"
|
RelativePath="..\sim_rev.h"
|
||||||
>
|
>
|
||||||
|
|
|
@ -327,14 +327,14 @@ ALTAIRZ80_SOURCE2 = $(ALTAIRZ80_DIR)S100_DISK1A.C,$(ALTAIRZ80_DIR)S100_DISK2.C,\
|
||||||
$(ALTAIRZ80_DIR)S100_FIF.C,$(ALTAIRZ80_DIR)S100_MDRIVEH.C,\
|
$(ALTAIRZ80_DIR)S100_FIF.C,$(ALTAIRZ80_DIR)S100_MDRIVEH.C,\
|
||||||
$(ALTAIRZ80_DIR)S100_MDSAD.C,$(ALTAIRZ80_DIR)S100_SELCHAN.C,\
|
$(ALTAIRZ80_DIR)S100_MDSAD.C,$(ALTAIRZ80_DIR)S100_SELCHAN.C,\
|
||||||
$(ALTAIRZ80_DIR)S100_SS1.C,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RZ80_OPTIONS = /INCL=($(SIMH_DIR),$(ALTAIRZ80_DIR))/DEF=($(CC_DEFS),"USE_SIM_IMD=1")
|
||||||
|
|
||||||
#
|
#
|
||||||
# Data General Nova Simulator Definitions.
|
# Data General Nova Simulator Definitions.
|
||||||
|
|
6
makefile
6
makefile
|
@ -768,7 +768,7 @@ LDFLAGS := $(OS_LDFLAGS) $(NETWORK_LDFLAGS) $(LDFLAGS_O)
|
||||||
BIN = BIN/
|
BIN = BIN/
|
||||||
SIM = scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c \
|
SIM = scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c \
|
||||||
sim_tmxr.c sim_ether.c sim_tape.c sim_disk.c sim_serial.c \
|
sim_tmxr.c sim_ether.c sim_tape.c sim_disk.c sim_serial.c \
|
||||||
sim_video.c
|
sim_video.c sim_imd.c
|
||||||
|
|
||||||
DISPLAYD = display
|
DISPLAYD = display
|
||||||
ifeq ($(WIN32),)
|
ifeq ($(WIN32),)
|
||||||
|
@ -1057,13 +1057,13 @@ ALTAIRZ80 = ${ALTAIRZ80D}/altairz80_cpu.c ${ALTAIRZ80D}/altairz80_cpu_nommu.c \
|
||||||
${ALTAIRZ80D}/s100_fif.c ${ALTAIRZ80D}/s100_mdriveh.c \
|
${ALTAIRZ80D}/s100_fif.c ${ALTAIRZ80D}/s100_mdriveh.c \
|
||||||
${ALTAIRZ80D}/s100_mdsad.c ${ALTAIRZ80D}/s100_selchan.c \
|
${ALTAIRZ80D}/s100_mdsad.c ${ALTAIRZ80D}/s100_selchan.c \
|
||||||
${ALTAIRZ80D}/s100_ss1.c ${ALTAIRZ80D}/s100_64fdc.c \
|
${ALTAIRZ80D}/s100_ss1.c ${ALTAIRZ80D}/s100_64fdc.c \
|
||||||
${ALTAIRZ80D}/s100_scp300f.c ${ALTAIRZ80D}/sim_imd.c \
|
${ALTAIRZ80D}/s100_scp300f.c \
|
||||||
${ALTAIRZ80D}/wd179x.c ${ALTAIRZ80D}/s100_hdc1001.c \
|
${ALTAIRZ80D}/wd179x.c ${ALTAIRZ80D}/s100_hdc1001.c \
|
||||||
${ALTAIRZ80D}/s100_if3.c ${ALTAIRZ80D}/s100_adcs6.c \
|
${ALTAIRZ80D}/s100_if3.c ${ALTAIRZ80D}/s100_adcs6.c \
|
||||||
${ALTAIRZ80D}/m68kcpu.c ${ALTAIRZ80D}/m68kdasm.c \
|
${ALTAIRZ80D}/m68kcpu.c ${ALTAIRZ80D}/m68kdasm.c \
|
||||||
${ALTAIRZ80D}/m68kopac.c ${ALTAIRZ80D}/m68kopdm.c \
|
${ALTAIRZ80D}/m68kopac.c ${ALTAIRZ80D}/m68kopdm.c \
|
||||||
${ALTAIRZ80D}/m68kopnz.c ${ALTAIRZ80D}/m68kops.c ${ALTAIRZ80D}/m68ksim.c
|
${ALTAIRZ80D}/m68kopnz.c ${ALTAIRZ80D}/m68kops.c ${ALTAIRZ80D}/m68ksim.c
|
||||||
ALTAIRZ80_OPT = -I ${ALTAIRZ80D}
|
ALTAIRZ80_OPT = -I ${ALTAIRZ80D} -DUSE_SIM_IMD
|
||||||
|
|
||||||
|
|
||||||
GRID = GRI
|
GRID = GRI
|
||||||
|
|
|
@ -301,6 +301,7 @@ static t_stat diskParse(DISK_INFO *myDisk, uint32 isVerbose)
|
||||||
sim_debug(myDisk->debugmask, myDisk->device, "Processed %d sectors\n", TotalSectorCount);
|
sim_debug(myDisk->debugmask, myDisk->device, "Processed %d sectors\n", TotalSectorCount);
|
||||||
|
|
||||||
for(i=0;i<myDisk->ntracks;i++) {
|
for(i=0;i<myDisk->ntracks;i++) {
|
||||||
|
uint8 j;
|
||||||
sim_debug(myDisk->verbosedebugmask, myDisk->device, "Track %02d: ", i);
|
sim_debug(myDisk->verbosedebugmask, myDisk->device, "Track %02d: ", i);
|
||||||
for(j=0;j<imd.nsects;j++) {
|
for(j=0;j<imd.nsects;j++) {
|
||||||
sim_debug(myDisk->verbosedebugmask, myDisk->device, "0x%06x ", myDisk->track[i][0].sectorOffsetMap[j]);
|
sim_debug(myDisk->verbosedebugmask, myDisk->device, "0x%06x ", myDisk->track[i][0].sectorOffsetMap[j]);
|
Loading…
Add table
Reference in a new issue