PT3 + AYFX player

Page 1/11
| 2 | 3 | 4 | 5 | 6

By Shiru

Expert (115)

Shiru's picture

29-03-2007, 00:44

Some days ago I promised that I'll make such example. And I even did it, partially. But for now I must work for some another projects first, and it's take some time. So, I decide to show current version of code to community, mainly because it contain ROM-version of PT3 player, which can be useful for somebody.

Archive contains all current source code + resources (music and sfx bank) to compile with sjasm, and already compiled example (in form of 16K ROM, MSX1).

Here is link: http://rapidshare.com/files/23257417/ayfxpt3_wip.rar.html

Login or register to post comments

By dioniso

Champion (479)

dioniso's picture

29-03-2007, 02:54

Thanks Shiru.

But watch out. I made the same mistake in the first port of the PT3 replayer for MSX. The 7th and 6th bit of the 7th register of the AY-3-8910 must be %10xxxxxx.

Just do something like:

CH_EXIT:
LD HL,AYREGS+AR_Mixer
OR (HL)
RRCA
OR %10000000
AND %10111111

By PingPong

Enlighted (4136)

PingPong's picture

29-03-2007, 07:47

It is very important. Otherwise you can broke the original hardware.!

Thanks Shiru.

But watch out. I made the same mistake in the first port of the PT3 replayer for MSX. The 7th and 6th bit of the 7th register of the AY-3-8910 must be %10xxxxxx.

Just do something like:

CH_EXIT:
LD HL,AYREGS+AR_Mixer
OR (HL)
RRCA
OR %10000000
AND %10111111

By Huey

Prophet (2694)

Huey's picture

29-03-2007, 08:40

WOOOOOHOOOOOOO \o/

Great work. A ROM replayer is indeed something we can use.

Thanks.

By dioniso

Champion (479)

dioniso's picture

29-03-2007, 09:46

It is very important. Otherwise you can broke the original hardware.!

Actually, the only problem detected 'till today is just that the joystick in MSX2+ doesn't work. Nothing else ...

By Manuel

Ascended (19463)

Manuel's picture

29-03-2007, 10:33

It can blow up (short-circuit) an MSX with a real PSG (not in MSX-ENGINE). You should never do this, really. openMSX 0.6.2 warns you if you do it.

My Sony HB-G900P has also not an MSX-ENGINE, and doing this could hang it in such way that it needed power off to restore. Luckily it wasn't fried!

By ro

Scribe (4963)

ro's picture

29-03-2007, 11:37

Fried noodles rock... oh, eh nevermind.

But uhrm, what is it a SFX replayer? Is there an editor?

By Alcoholics_Anonymous

Resident (39)

Alcoholics_Anonymous's picture

29-03-2007, 11:57

Here is link: http://rapidshare.com/files/23257417/ayfxpt3_wip.rar.html

Shiru, I'd love to have a look at this. Is there any way you could upload to someplace other than rapidshare? Rapidshare is a poor service -- it disqualifies many people like myself from free downloads.

By Shiru

Expert (115)

Shiru's picture

29-03-2007, 12:49

dioniso, yes, I remember about it. But is there problem in sfx player (I just don't check, this part was changed by AlCo)? Look:

	ld a,7
	out (#a0),a
	in a,(#a2) ;we read value from R7
	xor e ;then set/reset TN flags
	and d
	xor e
	ld c,iyh
	out (c),a	;and put value back in R7

ro, here is my editor: http://trd.speccy.cz/pcutilz/AYFX04.ZIP

Alcoholics_Anonymous, just say, where I must upload file for you. I don't know, which file share services popular in world.

By Alcoholics_Anonymous

Resident (39)

Alcoholics_Anonymous's picture

29-03-2007, 12:57

[Alcoholics_Anonymous, just say, where I must upload file for you. I don't know, which file share services popular in world.

Thanks shiru. Unfortunately I don't know what's popular either Smile but this works for me:

http://www.mediafire.com/

By dioniso

Champion (479)

dioniso's picture

29-03-2007, 13:11

dioniso, yes, I remember about it. But is there problem in sfx player (I just don't check, this part was changed by AlCo)?

It seems the code doesn't take into account these two bits ... just do the patch again before sending the new Tone and Noise bits to R#7.

	ld a,7
	out (#a0),a
	in a,(#a2) ;we read value from R7
	xor e ;then set/reset TN flags
	and d
	xor e
	ld c,iyh
	or %10000000
	and %10111111
	out (c),a	;and put value back in R7
Page 1/11
| 2 | 3 | 4 | 5 | 6