Previous Thread
Next Thread
Print Thread
Page 24 of 55 1 2 22 23 24 25 26 54 55
Joined: Mar 2001
Posts: 16,753
Likes: 29
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,753
Likes: 29
Could be. The envelope part of the filter envelope isn't hard (it's quite similar to the existing *EGs) but I have no idea how to apply the results to the sound.

Joined: Mar 2001
Posts: 16,753
Likes: 29
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,753
Likes: 29
For reference, in the VF3TB/Toy Fighter driver here's what the SH4 writes after downloading it and booting the ARM7.

First the init:

(keep in mind everything's little endian, so e.g. writing 001100a0 means a0 00 11 00 in memory (command a0, parameter 1=11, parameter2=12).

Code:
200 to 50
ffffffff to 60
ffffffff to 64
ffffffff to 68
ffffffff to 6c
ffffffff to 70
ffffffff to 74
ffffffff to 78
ffffffff to 7c
0 to 60
18a0 to 400
4b505444 to 10000
0 to 10004
1 to b0
0 to b0
1 to 64
18a0 to 404
1 to b0
0 to b0
e to 68
18a0 to 408
1 to b0
0 to b0
26 to 78
18a0 to 40c
1 to b0
0 to b0


And here's how it starts 1 song:
Code:
001100a0 to 410
011100a0 to 414
021100a0 to 418
071100a0 to 41c
061100a0 to 420
031100a0 to 424
2a to 7c
18a0 to 428
1 to b0
0 to b0
ba8 to 42c


and the second song:
Code:
001100a0 to 430
011100a0 to 434
021100a0 to 438
071100a0 to 43c
061100a0 to 440
031100a0 to 444
ffffffff to 7c
18a0 to 448
1 to b0
0 to b0
2b to 7c
18a0 to 44c
1 to b0
0 to b0
ea8 to 450


Based on this I'd gather that 0xa0 is some sort of all-purpose setup and 0xa8 actually plays the sequence.

Joined: Feb 2008
Posts: 107
D
Senior Member
Offline
Senior Member
D
Joined: Feb 2008
Posts: 107
Wow, SGGG_1KEN_00_00 does sound much better on my AICA. I guess it's not all that bad smile

There are some old SWI remains in ARM core, not used anymore so it's safe to remove them. If noone feels like it then I'll submit a patch later today - I gotta get some fresh air now (after spending last 24hrs or so in front of my PC)

kingshriek, expect more game files coming your way in very near future. Possibly MUCH more smile

Joined: Feb 2008
Posts: 107
D
Senior Member
Offline
Senior Member
D
Joined: Feb 2008
Posts: 107
Here's the cleanup. Nothing really important, but it does remove a variable from ARM state structure so make sure to properly recompile all ARM core sources.

Code:
diff -Nru old/arm7.c new/arm7.c
--- old/arm7.c	2008-02-24 21:25:19.000000000 +0100
+++ new/arm7.c	2008-02-24 21:25:26.000000000 +0100
@@ -51,7 +51,6 @@
   // sane startup values
   ARM7.fiq = 0;
   ARM7.irq = 0;
-  ARM7.swi = 0;
   ARM7.carry = 0;
   ARM7.overflow = 0;
   ARM7.flagi = FALSE;
@@ -175,14 +174,6 @@
   //--------------------------------------------------------------------------
 
   //--------------------------------------------------------------------------
-  /** Sets SWI state. */
-void ARM7_SetSWI (void)
-  {
-    ARM7.swi = 1;
-  }
-  //--------------------------------------------------------------------------
-
-  //--------------------------------------------------------------------------
   /** Tests for pending interrupts, switches to one if possible. */
 void ARM7_CheckIRQ ()
   {
@@ -219,19 +210,6 @@
       ARM7.irq = 0;
       }
     }
-
-  if (ARM7.swi)
-    {
-	ARM7_SetCPSR ((sr & 0xffffffc0) | ARM7_CPSR_M_svc);
-	ARM7.Rx [ARM7_SPSR] = sr;
-
-	if  (sr & ARM7_CPSR_T)
-		ARM7.Rx [ARM7_LR] = ARM7.Rx [ARM7_PC] + 2;
-	else
-		ARM7.Rx [ARM7_LR] = ARM7.Rx [ARM7_PC] + 4;
-	ARM7.Rx [ARM7_PC] = 0x00000008;
-	ARM7.swi = 0;
-    }
 #endif
   }
   //--------------------------------------------------------------------------
diff -Nru old/arm7.h new/arm7.h
--- old/arm7.h	2008-02-24 21:25:19.000000000 +0100
+++ new/arm7.h	2008-02-24 21:25:26.000000000 +0100
@@ -101,7 +101,7 @@
   ARM7_REG Rx_bank [6][10];
 
   /** FIQ and IRQ interrupt requests. */
-  int fiq, irq, swi;
+  int fiq, irq;
 
   /** Carry flag for barrel shifter and ALU operations. */
   int carry;
@@ -141,8 +141,6 @@
 void ARM7_SetFIQ (int stan);
   /** Sets IRQ line state. */
 void ARM7_SetIRQ (int stan);
-  /** Sets SWI state. */
-void ARM7_SetSWI (void);
 
   /** Tests for pending interrupts, switches to one if possible. */
 void ARM7_CheckIRQ (void);


Last minute update: DCDSF is now operational. Hooked to my PC via SCART -> Line-in.
If anyone wants a tune hardware-checked, drop me a note smile

Last edited by Deunan Knute; 02/24/08 09:38 PM.
Joined: Feb 2008
Posts: 14
M
Member
Offline
Member
M
Joined: Feb 2008
Posts: 14
How about SOA_303_02_00.minidsf from the Skies of Arcadia rip? (I believe that it is the Sky Pirate Base Theme.) Thanks in advance.

Last edited by marioman; 03/07/08 04:19 AM.
Joined: Feb 2008
Posts: 107
D
Senior Member
Offline
Senior Member
D
Joined: Feb 2008
Posts: 107
With Audacity help I can produce WAV or MP3 - problem is I can't figure out how to configure it for VBR as opposed to 128kbps CBR...
Anyway, I'll get to it once I'm back home. Where do I upload results? Will rapidshare do?

Joined: Feb 2008
Posts: 14
M
Member
Offline
Member
M
Joined: Feb 2008
Posts: 14
Sure. Thanks.

Joined: Feb 2008
Posts: 107
D
Senior Member
Offline
Senior Member
D
Joined: Feb 2008
Posts: 107
Done: http://rapidshare.com/files/97782885/soa-303-02-00.mp3.html
Rather than use the built-in function (with only CBR settings available) I run Lame myself with "-q 0 --strictly-enforce-ISO -t --vbr-new -V 0". In other words, it's as good as it gets for MPEG layer 3 smile

Joined: Feb 2008
Posts: 14
M
Member
Offline
Member
M
Joined: Feb 2008
Posts: 14
Thanks. So it sounds like the DSF set is good, and that it is just the AO support that needs some work.

It seems that the only issue to be corrected in this particular track is the wind sound in the background. The AO output interprets the sound as a sort of cymbal and plays it many times too loud.

Other than that, it sounds great. Thanks for recording the track. I hope that you figure out what the problem is soon.

Last edited by marioman; 03/07/08 09:28 PM.
Joined: Feb 2008
Posts: 107
D
Senior Member
Offline
Senior Member
D
Joined: Feb 2008
Posts: 107
Yeah, AO sometimes keys on wrong instruments. Happens on srtalpha_MB_EVA_6 too, just before the music goes more lively.
I've checked it agains DKDSF and DC - it doesn't happen there so the AICA ram image is good.

And by the way - where exactly did DSP program word field assignment came from? I've nothing on it (and yet I have my doubts on several things in aicadsp.c).

Page 24 of 55 1 2 22 23 24 25 26 54 55

Moderated by  R. Belmont, Richard Bannister 

Link Copied to Clipboard
Who's Online Now
1 members (Golden Child), 30 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,941
Posts117,539
Members4,994
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com