Skip to content

Commit

Permalink
TAG062 2023/06/24
Browse files Browse the repository at this point in the history
  Compiler:transposeの負数対応。(mc.asmの暫定対応に合わせたもの)
  Compiler:psgprgの処理をオリジナルに合わせた。(出力されるデータに差異無し)
  • Loading branch information
kumatan committed Sep 22, 2023
1 parent db4a8d0 commit d3afa8b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
�X�V����
TAG062 2023/06/24
Compiler:transpose�̕����Ή��B(mc.asm�̎b��Ή��ɍ��킹������)
Compiler:psgprg�̏������I���W�i���ɍ��킹���B(�o�͂����f�[�^�ɍ��ٖ���)

TAG061 2023/06/24
Console:�R���p�C���G���[�����������ꍇ�̓��^�[���R�[�h�P�ŏI������悤�ɏC��

Expand Down
37 changes: 21 additions & 16 deletions PMDDotNETCompiler/mc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ public class mc
//;==============================================================================
//;
//; MML Compiler/Effect Compiler FOR PC-9801/88VA
//; ver 4.8r
//; ver 4.8s
//;
//;==============================================================================
// .186

public static string ver = "4.8s";// version
public static int vers = 0x48;
public static string date = "2020/01/22";// date
public static string date = "2023/09/23";// date

#if !hyouka
public int hyouka = 0;//1で評価版(save機能cut)
Expand Down Expand Up @@ -2638,14 +2638,17 @@ private void memo_set()
//;==============================================================================
private void transpose_set()
{
int bx = 0;
byte al = 0;
if (lngset(out bx, out al))
{
error('#', 7, work.si);
}
_ = getnum(out _, out byte dl);//230923 FIXED
mml_seg.transpose = dl;//

//int bx = 0;
//byte al = 0;
//if (lngset(out bx, out al))
//{
// error('#', 7, work.si);
//}

mml_seg.transpose = al;
//mml_seg.transpose = al;
}


Expand Down Expand Up @@ -7711,19 +7714,21 @@ private enmPass2JumpTable neirochg()
return enmPass2JumpTable.olc03;

psgprg:;
work.bx = (byte)work.bx;
if (work.bx >= mml_seg.psgenvdat_max + 1) work.bx = 0;
//work.bx *= 4;
//work.bx = (byte)work.bx;
work.bx += 0;//offset psgenvdat
cmd = new MmlDatum((byte)0xf0, enmMMLType.Instrument, MakeLinePos(), new object[] { });
m_seg.m_buf.Set(work.di++, cmd);
cx = 4;
if (work.bx > 9)
{
musicDriverInterface.Log.WriteLine(LogLevel.WARNING,
string.Format(msg.get("W0100"), work.bx)
);
work.bx = 0;
}
//if (work.bx > 9)
//{
// musicDriverInterface.Log.WriteLine(LogLevel.WARNING,
// string.Format(msg.get("W0100"), work.bx)
// );
// work.bx = 0;
//}
//pplop0:;
for (int i = 0; i < 4; i++)
{
Expand Down
4 changes: 2 additions & 2 deletions PMDDotNETCompiler/mml_seg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ public class mml_seg
,new byte[]{ 1,2,0,1 }// @8 Brass 1
,new byte[]{ 1,2,24,1 }// @9 Brass 2
};

public int max_part = 11;
public int psgenvdat_max = 9;
public int max_part = 11;
public int fm = 0;
public int fm2 = 1;
public int psg = 2;
Expand Down
2 changes: 1 addition & 1 deletion PMDDotNETConsole/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"PMDDotNETConsole": {
"commandName": "Project",
"commandLineArgs": "-LOGLEVEL=INFO /V /c C:\\Users\\kuma\\Downloads\\pmdtest.mml"
"commandLineArgs": "-LOGLEVEL=INFO /V /c D:\\bootcamp\\FM音源\\data\\自作\\test\\testPMDTranspose.mml"
}
}
}
Binary file modified PMDDotNETPlayer/lib/MDSound.dll
Binary file not shown.
Binary file modified lib/musicDriverInterface.dll
Binary file not shown.

0 comments on commit d3afa8b

Please sign in to comment.