mirror of
https://github.com/wfjm/w11.git
synced 2026-04-18 10:06:07 +00:00
tcode: add Makefile [skip ci]
This commit is contained in:
78
tools/tcode/Makefile
Normal file
78
tools/tcode/Makefile
Normal file
@@ -0,0 +1,78 @@
|
||||
# $Id: Makefile 1264 2022-07-30 07:42:17Z mueller $
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# Copyright 2022- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
#
|
||||
# Revision History:
|
||||
# Date Rev Version Comment
|
||||
# 2022-07-29 1264 1.0 Initial version
|
||||
#---
|
||||
#
|
||||
include ${RETROBASE}/tools/make/generic_asm11.mk
|
||||
#
|
||||
MAC_all += cpu_badinst_nofpp.mac
|
||||
MAC_all += cpu_basics.mac
|
||||
MAC_all += cpu_details.mac
|
||||
MAC_all += cpu_eis.mac
|
||||
MAC_all += cpu_mmu.mac
|
||||
MAC_all += cpu_selftest.mac
|
||||
#
|
||||
LDA_all = $(MAC_all:.mac=.lda)
|
||||
LST_all = $(MAC_all:.mac=.lst)
|
||||
EXP_all = $(MAC_all:.mac=.exp.mac)
|
||||
TSIM_all = $(MAC_all:.mac=.tsim)
|
||||
TE11_all = $(MAC_all:.mac=.te11)
|
||||
TW11_all = $(MAC_all:.mac=.tw11)
|
||||
#
|
||||
# create export mac (with asm-11 -E)
|
||||
%.exp.mac : %.mac
|
||||
asm-11 -E $< > $@
|
||||
# execute SimH simulation
|
||||
%.tsim : %.lda
|
||||
pdp11 tcode_exec.scmd $* | grep -q "HALT instruction, PC: 002002"
|
||||
# execute e11 simulation; output goes to tmp_e11_tt0.log
|
||||
%.te11 : %.lda
|
||||
@rm -f tmp_e11.ini
|
||||
@echo "@tcode.ecmd" >> tmp_e11.ini
|
||||
@echo "mount pr: $*.lda" >> tmp_e11.ini
|
||||
@echo "boot pr:" >> tmp_e11.ini
|
||||
@echo "quit" >> tmp_e11.ini
|
||||
e11 /initfile:tmp_e11.ini
|
||||
grep "PC/002002" tmp_e11_tt0.log
|
||||
rm -f tmp_e11_tt0.log tmp_e11.ini
|
||||
# execute w11 simulation (on C7 system)
|
||||
%.tw11 : %.mac
|
||||
ti_w11 -c7 -tmu -w -e $< | tbfilt
|
||||
#
|
||||
.PHONY : default alllda alllst allexp alltsim alltw11 clean
|
||||
#
|
||||
default :
|
||||
@echo "No default action defined, use"
|
||||
@echo " make alllda all .lda + .lst files"
|
||||
@echo " make alllst all .lst files"
|
||||
@echo " make allexp all exp.mac export files"
|
||||
@echo " make alltsim all SimH tests"
|
||||
@echo " make allte11 all e11 tests"
|
||||
@echo " make alltw11 all w11 GHDL simulation tests"
|
||||
@echo " make <tcode>.lda compile, create .lda + .lst"
|
||||
@echo " make <tcode>.lst compile, create .lst"
|
||||
@echo " make <tcode>.exp.mac compile with -E"
|
||||
@echo " make <tcode>.tsim run SimH simulator"
|
||||
@echo " make <tcode>.te11 run e11 simulator"
|
||||
@echo " make <tcode>.tw11 run w11 GHDL simulation (for C7)"
|
||||
#
|
||||
alllda : $(LDA_all)
|
||||
#
|
||||
alllst : $(LST_all)
|
||||
#
|
||||
allexp : $(EXP_all)
|
||||
#
|
||||
alltsim : $(TSIM_all)
|
||||
#
|
||||
allte11 : $(TE11_all)
|
||||
#
|
||||
alltw11 : $(TW11_all)
|
||||
#
|
||||
clean :
|
||||
rm -rf *.lst
|
||||
rm -rf *.lda
|
||||
rm -rf *.exp.mac
|
||||
Reference in New Issue
Block a user