Skip to content

Commit

Permalink
use optlink
Browse files Browse the repository at this point in the history
  • Loading branch information
takamichih committed Dec 30, 2019
1 parent 2e45b00 commit 89df6b5
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 20 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ PMD データ形式とその音楽文化の更なる発展を願って。

`common/` 内のファイルを編集することでアセンブラやリンカを変更できます。

全てのブランチで SLR Systems OPTASM 1.65, MS LINK 5.31.009 でビルドできます (全てのブランチで、これでビルドした結果のバイナリが変わらないような最小限のソースとなるようにしています)
全てのブランチで SLR Systems OPTASM 1.65, OPTLINK 2.31 でビルドできます (全てのブランチで、これでビルドした結果のバイナリが変わらないような最小限のソースとなるようにしています)

## ブランチについて
* `original`: 元のアーカイブに EOF 除去以外の変更を加えずに Makefile などを追加したもの
Expand Down Expand Up @@ -58,7 +58,7 @@ On `masm` branch it is possible to build using recent `ml.exe` up to 9.0 (VC2008

Which assembler and linker to use is configurable through files under `common/`.

All branches are buildable with SLR Systems OPTASM 1.65, MS LINK 5.31.009. (All branches should produce identical binaries when compiled with these tools)
All branches are buildable with SLR Systems OPTASM 1.65, OPTLINK 2.31. (All branches should produce identical binaries when compiled with these tools)

## Branches
* `original`: imported original archive contents without modification except for EOF removal, and added makefiles
Expand Down
34 changes: 17 additions & 17 deletions binmd5.sum
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
5f4f2dd54c952a3646bd004db6b4f50f ./pmp48l_s/PMP.COM
06148824af7f9353118f2bb2e9fb757c ./pmd48q_s/PMDPPZ.COM
4caa566834d13a2d510e55b8639df9ee ./pmd48q_s/PMD.COM
49d262eede561ebedf95d0092ddd5f4b ./pmd48q_s/PMD86.COM
aaefd370f13c8f5e36d00fcb95391aaa ./pmd48q_s/PMDPPZE.COM
af1c751cf753d8a34aa3704f39be7fbf ./pmd48q_s/PMDVA.COM
633c952aa80de2f5ad563f423a5be714 ./pmd48q_s/PMDVA1.COM
43f169c0cc0e0624c46f884d0d333b13 ./pmd48q_s/PMDB2.COM
7f29c48bd4f152ed14917fe0831f670f ./mc48q_s/EFC.EXE
37a52dae7ec8c6c1fc92e8016a5074b6 ./mc48q_s/MC.EXE
c5388595fdab6dc8ff58d63687e29a4c ./mc48q_s/MCH.EXE
4c83b3267471565d5f737e433402329e ./pmdibm46.a_s/EFC.EXE
8629687ab60938fa743481f147150543 ./pmdibm46.a_s/PMDL.COM
a885fbad00b7ac65670677e1eb8cad41 ./pmdibm46.a_s/MC.EXE
d21fca90ebf65d58114f537ff32144bc ./pmdibm46.a_s/MCH.EXE
75442d757a404b0a64693000c53094b4 ./pmdibm46.a_s/PMP.COM
db4c58d6d7cb454b7fc76efb9a0e6405 ./pmdibm46.a_s/PMDIBM.COM
f81c4148636aec5d160549d8302bd2bf mc48q_s/EFC.EXE
40b0911f471877ae0fa5d14bb886efc7 mc48q_s/MC.EXE
fe1d0f96b7291061d70d183629e0d74c mc48q_s/MCH.EXE
bbe055b406a74b813a9cd240b7a72e5c pmd48q_s/PMDPPZ.COM
a206af3301bf63d8746f086bb2e63034 pmd48q_s/PMD.COM
604efe7f89a3435ca0a5962c853273b4 pmd48q_s/PMD86.COM
640ea28ca5c2d693227944162fb86813 pmd48q_s/PMDPPZE.COM
7ccb21c19f9cbc8ef339f236d4de724a pmd48q_s/PMDVA.COM
660b4a3a27ab61233ff454d3d4b266b8 pmd48q_s/PMDVA1.COM
a7150fdc235434e96db65530a1a950f1 pmd48q_s/PMDB2.COM
6ff86fd7bce986a04db88c01b6fe9721 pmdibm46.a_s/EFC.EXE
8629687ab60938fa743481f147150543 pmdibm46.a_s/PMDL.COM
8fb6686358a74ad2986ad0401c50c0e2 pmdibm46.a_s/MC.EXE
31f89a0bc7183fd095db6164d37bb37d pmdibm46.a_s/MCH.EXE
c09426c038e324549632f4756a9a3840 pmdibm46.a_s/PMP.COM
db4c58d6d7cb454b7fc76efb9a0e6405 pmdibm46.a_s/PMDIBM.COM
74383f81b8c7bd8e53090dda17d32665 pmp48l_s/PMP.COM
2 changes: 2 additions & 0 deletions common/ld-opt.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo on
optlink /nologo %1,%2;
2 changes: 1 addition & 1 deletion common/ld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ rem %2: target
rem %3: /t for .com output (checks if not empty)
set tsuf=.com
if "%2" == "" set tsuf=.exe
..\common\ld-link %1.obj %1%tsuf% %2
..\common\ld-opt %1.obj %1%tsuf% %2
2 changes: 2 additions & 0 deletions makemd5.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
find * \( -name '*.COM' -o -name '*.EXE' \) -exec md5sum {} \; > binmd5.sum
7 changes: 7 additions & 0 deletions makezip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
if [ ${#} -ne 1 ]; then
>&2 echo "please specify output zip file name"
exit 1
fi
rm "${1}"
find * \( -name '*.COM' -o -name '*.EXE' -o -name '*.com' -o -name '*.exe' \) -exec 7z a "${1}" {} \;

0 comments on commit 89df6b5

Please sign in to comment.