Skip to content

Commit

Permalink
AltairZ80: Promote sim_imd.c to a top level simh library to be used a…
Browse files Browse the repository at this point in the history
…s needed by various simulators
  • Loading branch information
markpizz committed Sep 16, 2014
1 parent 60a0cf7 commit defe5f0
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 32 deletions.
51 changes: 24 additions & 27 deletions Visual Studio Projects/AltairZ80.vcproj
Expand Up @@ -42,7 +42,7 @@
Name="VCCLCompilerTool"
Optimization="0"
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"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
Expand Down Expand Up @@ -121,7 +121,7 @@
InlineFunctionExpansion="1"
OmitFramePointers="true"
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"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
Expand Down Expand Up @@ -202,78 +202,71 @@
>
</File>
<File
RelativePath="..\AltairZ80\m68kcpu.c"
RelativePath="..\AltairZ80\altairz80_net.c"
>
</File>

<File
RelativePath="..\AltairZ80\m68kdasm.c"
RelativePath="..\AltairZ80\altairz80_sio.c"
>
</File>

<File
RelativePath="..\AltairZ80\m68kopac.c"
RelativePath="..\AltairZ80\altairz80_sys.c"
>
</File>

<File
RelativePath="..\AltairZ80\m68kopdm.c"
RelativePath="..\AltairZ80\disasm.c"
>
</File>

<File
RelativePath="..\AltairZ80\m68kopnz.c"
RelativePath="..\AltairZ80\flashwriter2.c"
>
</File>

<File
RelativePath="..\AltairZ80\m68kops.c"
RelativePath="..\AltairZ80\i8272.c"
>
</File>

<File
RelativePath="..\AltairZ80\m68ksim.c"
RelativePath="..\AltairZ80\i86_decode.c"
>
</File>

<File
RelativePath="..\AltairZ80\altairz80_net.c"
RelativePath="..\AltairZ80\i86_ops.c"
>
</File>
<File
RelativePath="..\AltairZ80\altairz80_sio.c"
RelativePath="..\AltairZ80\i86_prim_ops.c"
>
</File>
<File
RelativePath="..\AltairZ80\altairz80_sys.c"
RelativePath="..\AltairZ80\insnsd.c"
>
</File>
<File
RelativePath="..\AltairZ80\disasm.c"
RelativePath="..\AltairZ80\m68kcpu.c"
>
</File>
<File
RelativePath="..\AltairZ80\flashwriter2.c"
RelativePath="..\AltairZ80\m68kdasm.c"
>
</File>
<File
RelativePath="..\AltairZ80\i8272.c"
RelativePath="..\AltairZ80\m68kopac.c"
>
</File>
<File
RelativePath="..\AltairZ80\i86_decode.c"
RelativePath="..\AltairZ80\m68kopdm.c"
>
</File>
<File
RelativePath="..\AltairZ80\i86_ops.c"
RelativePath="..\AltairZ80\m68kopnz.c"
>
</File>
<File
RelativePath="..\AltairZ80\i86_prim_ops.c"
RelativePath="..\AltairZ80\m68kops.c"
>
</File>
<File
RelativePath="..\AltairZ80\insnsd.c"
RelativePath="..\AltairZ80\m68ksim.c"
>
</File>
<File
Expand Down Expand Up @@ -357,7 +350,7 @@
>
</File>
<File
RelativePath="..\AltairZ80\sim_imd.c"
RelativePath="..\sim_imd.c"
>
</File>
<File
Expand Down Expand Up @@ -421,6 +414,10 @@
RelativePath="..\sim_fio.h"
>
</File>
<File
RelativePath="..\sim_imd.h"
>
</File>
<File
RelativePath="..\sim_rev.h"
>
Expand Down
4 changes: 2 additions & 2 deletions descrip.mms
Expand Up @@ -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_MDSAD.C,$(ALTAIRZ80_DIR)S100_SELCHAN.C,\
$(ALTAIRZ80_DIR)S100_SS1.C,$(ALTAIRZ80_DIR)S100_64FDC.C,\
$(ALTAIRZ80_DIR)S100_SCP300F.C,$(ALTAIRZ80_DIR)SIM_IMD.C,\
$(ALTAIRZ80_DIR)S100_SCP300F.C,$(SIMH_DIR)SIM_IMD.C,\
$(ALTAIRZ80_DIR)WD179X.C,$(ALTAIRZ80_DIR)S100_DISK3.C,\
$(ALTAIRZ80_DIR)S100_ADCS6.C,$(ALTAIRZ80_DIR)S100_HDC1001.C,\
$(ALTAIRZ80_DIR)S100_IF3.C,$(ALTAIRZ80_DIR)ALTAIRZ80_MHDSK.C,\
$(ALTAIRZ80_DIR)M68KCPU.C,$(ALTAIRZ80_DIR)M68KDASM.C,\
$(ALTAIRZ80_DIR)M68KOPAC.C,$(ALTAIRZ80_DIR)M68KOPDM.C,\
$(ALTAIRZ80_DIR)M68KOPNZ.C,$(ALTAIRZ80_DIR)M68KOPS.C,$(ALTAIRZ80_DIR)M68KSIM.C
ALTAIRZ80_OPTIONS = /INCL=($(SIMH_DIR),$(ALTAIRZ80_DIR))/DEF=($(CC_DEFS))
ALTAIRZ80_OPTIONS = /INCL=($(SIMH_DIR),$(ALTAIRZ80_DIR))/DEF=($(CC_DEFS),"USE_SIM_IMD=1")

#
# Data General Nova Simulator Definitions.
Expand Down
6 changes: 3 additions & 3 deletions makefile
Expand Up @@ -768,7 +768,7 @@ LDFLAGS := $(OS_LDFLAGS) $(NETWORK_LDFLAGS) $(LDFLAGS_O)
BIN = BIN/
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_video.c
sim_video.c sim_imd.c

DISPLAYD = display
ifeq ($(WIN32),)
Expand Down Expand Up @@ -1057,13 +1057,13 @@ ALTAIRZ80 = ${ALTAIRZ80D}/altairz80_cpu.c ${ALTAIRZ80D}/altairz80_cpu_nommu.c \
${ALTAIRZ80D}/s100_fif.c ${ALTAIRZ80D}/s100_mdriveh.c \
${ALTAIRZ80D}/s100_mdsad.c ${ALTAIRZ80D}/s100_selchan.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}/s100_if3.c ${ALTAIRZ80D}/s100_adcs6.c \
${ALTAIRZ80D}/m68kcpu.c ${ALTAIRZ80D}/m68kdasm.c \
${ALTAIRZ80D}/m68kopac.c ${ALTAIRZ80D}/m68kopdm.c \
${ALTAIRZ80D}/m68kopnz.c ${ALTAIRZ80D}/m68kops.c ${ALTAIRZ80D}/m68ksim.c
ALTAIRZ80_OPT = -I ${ALTAIRZ80D}
ALTAIRZ80_OPT = -I ${ALTAIRZ80D} -DUSE_SIM_IMD


GRID = GRI
Expand Down
1 change: 1 addition & 0 deletions AltairZ80/sim_imd.c → sim_imd.c
Expand Up @@ -301,6 +301,7 @@ static t_stat diskParse(DISK_INFO *myDisk, uint32 isVerbose)
sim_debug(myDisk->debugmask, myDisk->device, "Processed %d sectors\n", TotalSectorCount);

for(i=0;i<myDisk->ntracks;i++) {
uint8 j;
sim_debug(myDisk->verbosedebugmask, myDisk->device, "Track %02d: ", i);
for(j=0;j<imd.nsects;j++) {
sim_debug(myDisk->verbosedebugmask, myDisk->device, "0x%06x ", myDisk->track[i][0].sectorOffsetMap[j]);
Expand Down
File renamed without changes.

0 comments on commit defe5f0

Please sign in to comment.