Skip to content

Commit

Permalink
Changed headers with new info recently discovered
Browse files Browse the repository at this point in the history
  • Loading branch information
james-wallace-ghub committed Dec 23, 2019
1 parent 5f2dc32 commit f6620e2
Showing 1 changed file with 68 additions and 2 deletions.
70 changes: 68 additions & 2 deletions U3_Loader/U3_Loader/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public partial class Form1 : Form
private string ExportDir;
private List<SampleCode> Samples7a;
private List<SampleCode> Samples00;
string String7A = "CMD,Type,Offset1 Address(CPU),Offset1 Address(ROM),Priority,Offset2,Offset2 Address(CPU),Offset2 Address(ROM),Voice,Volume?,Offset3 Address(CPU),Offset3 Address(ROM),Offset4 Address(CPU),Offset4 Address(ROM),Offset5 Address(CPU),Offset5 Address(ROM),Bank,Pad?,Sample\n";
string String00 = "CMD,Type,Offset1 Address(CPU),Offset1 Address(ROM),Priority,Offset2,Offset2 Address(CPU),Offset2 Address(ROM),Voice,Volume?,Offset3 Address(CPU),Offset3 Address(ROM),Offset4 Address(CPU),Offset4 Address(ROM),Offset5 Address(CPU),Offset5 Address(ROM),Bank,Pad?,Sample\n";
string String7A = "CMD,Type,Offset1 Address(CPU),Offset1 Address(ROM),Type Code,Offset2,Offset2 Address(CPU),Offset2 Address(ROM),Voice,Volume?,Offset3 Address(CPU),Offset3 Address(ROM),Offset4 Address(CPU),Offset4 Address(ROM),Offset5 Address(CPU),Offset5 Address(ROM),Bank,Pad?,Sample\n";
string String00 = "CMD,Type,Offset1 Address(CPU),Offset1 Address(ROM),Type Code,Offset2,Offset2 Address(CPU),Offset2 Address(ROM),Voice,Volume?,Offset3 Address(CPU),Offset3 Address(ROM),Offset4 Address(CPU),Offset4 Address(ROM),Offset5 Address(CPU),Offset5 Address(ROM),Bank,Pad?,Sample\n";

public Form1()
{
Expand Down Expand Up @@ -75,6 +75,40 @@ private void button1_Click(object sender, EventArgs e)
if (synth == false)
{
samplecode.priority = tmp[samplecode.offset1ROM];

switch (samplecode.priority)
{
case 0x01:
{
samplecode.Type = "Music";
break;
}

case 0x04:
{
samplecode.Type = "SFX";
break;
}

case 0x07:
{
samplecode.Type = "Sample";
break;
}

case 0x0F:
{
samplecode.Type = "Code";
break;
}

default:
{
samplecode.Type = "0x"+ samplecode.priority.ToString("X2");
break;
}
}

samplecode.offset2 = tmp[samplecode.offset1ROM + 1];
samplecode.offset2CPU = (int)(base2 + (2 * samplecode.offset2)); //6255 + 2 x (byte2)
samplecode.offset2ROM = (int)(origstart + samplecode.offset2CPU - baseadd); //2255 + 2 x (byte2)
Expand Down Expand Up @@ -181,6 +215,38 @@ private void button1_Click(object sender, EventArgs e)
if (synth == false)
{
samplecode.priority = tmp[samplecode.offset1ROM];
switch (samplecode.priority)
{
case 0x01:
{
samplecode.Type = "Music";
break;
}

case 0x04:
{
samplecode.Type = "SFX";
break;
}

case 0x07:
{
samplecode.Type = "Sample";
break;
}

case 0x0F:
{
samplecode.Type = "Code";
break;
}

default:
{
samplecode.Type = "0x" + samplecode.priority.ToString("X2");
break;
}
}
samplecode.offset2 = tmp[samplecode.offset1ROM + 1];
samplecode.offset2CPU = (int)(base2 + (2 * samplecode.offset2)); //6255 + 2 x (byte2)
samplecode.offset2ROM = (int)(origstart + samplecode.offset2CPU - baseadd); //2255 + 2 x (byte2)
Expand Down

0 comments on commit f6620e2

Please sign in to comment.