I need make a test for OPLL chip in basic, similar to...

Door Dhampird

Hero (589)

afbeelding van Dhampird

09-06-2010, 17:33

I need make a test for OPLL chip, for SCC and PSG i can do this:

TEST SCC y PSG
- In BASIC
- OUT&FE,2 (memory page)
- BLOAD"SCC.ROM" or BLOAD"PSG.ROM"
- PUSH RESET BUTTON
- THE TEST RUNS

The problem is that i dont have anything for OPLL chip test, i wonder if there is something similar for test the OPLL, it will be any file called OPLL.rom that can works in OUT&FE,2?

Please, help me with this.
Thanks.

Aangemeld of registreer om reacties te plaatsen

Van Leo

Paragon (1236)

afbeelding van Leo

09-06-2010, 19:24

when you say test you mean you want to detect if there is opll chip or not ?

Van RetroTechie

Paragon (1563)

afbeelding van RetroTechie

09-06-2010, 19:36

You don't need to test for the PSG - if your system requirements state 'MSX' (or MSX2/2+/TurboR), then you have a PSG, period. MSX standard says so and there aren't any exceptions AFAIK.

For the SCC you could re-load BASIC program starting at C000h, write primary slot register to page slot 1 or 2 in 8000-BFFFh range, and test for SCC registers in your BASIC program. But you can't change/detect SCC in sub-slots (eg. SCC sitting in a slotexpander) that way.

OPLL (YM2413 chip) is read only, so you can't detect its presence. Normal way to determine if MSX-Music is available, is search for some string ("OPLL" I think it was), at a particular location in 4000-7FFFh range (=not detect the chip, but find a ROM that goes with it). But in BASIC you can only read the BASIC ROM in that memory range.

An option would be to run a BASIC command that only works when an MSX-Music ROM is present, and use some 'ON ERROR GOTO/GOSUB' construct to catch the result. People who have used MSX-Music from BASIC will be more qualified to mention a suitable command to try. Another option is to just use the thing, and listen if sound comes out... Tongue

The more easy+elegant way would be to just load a small piece of machinecode, have that detect the various things, and return results back to your BASIC program. Is there some reason why you can't/don't want to go that route? Question

Van Dhampird

Hero (589)

afbeelding van Dhampird

09-06-2010, 21:44

Hello everyone, the question is that a friend is making for me a LPE-SAN3-V1 and he ask me about if i know a way to test the OPLL chip, because he needs to adjust the amplifier on LPE-SAN3-V1, he told me that for the SCC and PSG works right with the method:
- In BASIC
- OUT&FE,2 (memory page)
- BLOAD"SCC.ROM" or BLOAD"PSG.ROM"
- PUSH RESET BUTTON
- THE TEST RUNS

But he needs similar test program to can test the OPLL.

If i read well, then the OPLL is read only and then cant detect its presence, but using in basic 4000-7FFFh range and a game.rom (that uses OPLL chip) will be posisible test it and adjust the amplifier?
I think about using a game that use OPLL chip and make some kind of test, a game that use this will be F1 Spirit 3D for MSX2+, do you know any games that full use the OPLL?

Thanks.

Van msxegor

Master (183)

afbeelding van msxegor

09-06-2010, 21:50

CALL MUSIC? (may conflict with MSX AUDIO, but fortunately it is R/W at io ports C0,C1)
Most games with OPLL sound search for either APRLOPLL or PAC2OPLL strings AFAIR

Van RetroTechie

Paragon (1563)

afbeelding van RetroTechie

09-06-2010, 23:20

a friend is making for me a LPE-SAN3-V1 and he ask me about if i know a way to test the OPLL chip.
I'd simply play a MoonBlaster song with a replay TSR - no fuss with starting a game, and you can have it repeat forever.

Try other things in BASIC or machinecode while music plays in the background, change song if you want to test amplifier with different kinds of sounds. Or just throw in some music demo disk that uses FM-PAC/K (if you're lazy) - there must be loads of those...

Van Leonardo Padial

Expert (73)

afbeelding van Leonardo Padial

12-06-2010, 19:23

I tested the OPLL of LPE-SAN3-V2, using only one FMPAK cartridge. As the OPLL chip is one only WR devices, is posible put two o more OPLLs in paralell in similar address.
Here the OPLL alternative address of LPE-SAN3-V2 card, mush be put as the FMPAK address. The sequence is:

- FMPAK cartridge in one slot.
- LPESAN3-V2 in other slot.
- In BASIC, OUT &H5B,&B11111100 ( OPLL &H7C-&H7D ALTENATIVE ADDRESS to FMPAK STANDARD ADDRESS and ENALE OPLL).
- In BASIC CALL FMPAK.
- Then the FMPAK music mush hear too in the hearphone conected to the jack of LPESAN3-V2.

Van JohnHassink

Ambassador (5655)

afbeelding van JohnHassink

14-06-2010, 16:13

Van alexworp3

Expert (126)

afbeelding van alexworp3

14-06-2010, 18:25

i think it is something like this:
10 call music
20 play#2, cde

Van Manuel

Ascended (19270)

afbeelding van Manuel

14-06-2010, 20:47

Don't forget the quotes: "cde"

Van alexworp3

Expert (126)

afbeelding van alexworp3

15-06-2010, 18:37

you're right i'm sorry