PT3 + AYFX player

Pagina 5/11
1 | 2 | 3 | 4 | | 6 | 7 | 8 | 9 | 10

Van ARTRAG

Enlighted (6935)

afbeelding van ARTRAG

06-08-2007, 12:02

GREAT!!
going to test!

Van ARTRAG

Enlighted (6935)

afbeelding van ARTRAG

06-08-2007, 13:06

I got it!! Thanks!!! Now it plays !!!
And I do not need any SCC detect (as it is in my own slot!!)

LOL!LOL!LOL!LOL!LOL!

Van ARTRAG

Enlighted (6935)

afbeelding van ARTRAG

08-08-2007, 07:26

I've spotted a problem in the code of WYZ
It does not control the mixer in the SCC.
This is a issue, as when the PT3 player switch off
a channel, the SCC continues to play that note.

Here there is a patch to the patch able to override the problem,
modify the code here :
http://karoshi.msxgamesbox.com/index.php?topic=562.0
with this routine:

            LD HL,AYREGS            ;REPRODUCE SONIDO EN PSG
    
_LOUT:      OUT (C),A
            INC C
            OUTI
            DEC C
            INC A
            CP  13
            JR NZ,_LOUT
            OUT (C),A
            LD A,(HL)
            AND A
            JP  M,SCCOUT
            INC C
            OUT (C),A

;CLONA SONIDO AL SCC

;CANALES PSG    SCC
;     A 1+4
;     B 2+5
;     C 3


SCCOUT:     ;FRECUENCIA

            ld  a,0x3fh
            ld  (Bank3),a

            LD  HL,(AYREGS+0)       ;REPRODUCE SONIDO EN SCC
            LD  (SCC_REG+0),HL
            DEC HL                  ;CHORUS EN CANAL 4 OPCIONAL
            LD  (SCC_REG+6),HL      ;*
            LD  HL,(AYREGS+2)
            LD  (SCC_REG+2),HL
            DEC HL                  ;CHORUS EN CANAL 5 OPCIONAL
            DEC HL
            LD  (SCC_REG+8),HL      ;*
            LD  HL,(AYREGS+4)
            LD  (SCC_REG+4),HL

            ;VOLUMEN

            LD      A,(AYREGS+8)
            LD      (SCC_REG+0x0A),A
            LD      (SCC_REG+0x0D),A
            LD      A,(AYREGS+9)
            LD      (SCC_REG+0x0B),A
            LD      (SCC_REG+0x0E),A
            LD      A,(AYREGS+10)
            LD      (SCC_REG+0x0C),A
            

            ;MIXER
            ld a,(AYREGS+AR_Mixer)
            ld  b,a
            xor a
            bit 0,b
            jp nz,noA
            or  00001001B       ; A-> ch 1 & 4
noA:        bit 1,b
            jp  nz,noB
            or  00010010B       ; B-> ch 2 & 5
noB:        bit 2,b
            jp  nz,noC
            or  00000100B       ; C-> ch 3
noC:        ld (SCC_REG+0x0F),a
            
            RET

Any proposal in order to make this code more efficient and faster ?

Van ARTRAG

Enlighted (6935)

afbeelding van ARTRAG

08-08-2007, 17:19

hi
what is the most efficient solution to optimize this code

            ;MIXER
            ld a,(AYREGS+AR_Mixer)
            ld  b,a
            xor a
            bit 0,b
            jp nz,noA
            or  00001001B       ; A-> ch 1 & 4
noA:        bit 1,b
            jp  nz,noB
            or  00010010B       ; B-> ch 2 & 5
noB:        bit 2,b
            jp  nz,noC
            or  00000100B       ; C-> ch 3
noC:        ld (SCC_REG+0x0F),a
            
            RET

Van Vincent van Dam

Hero (513)

afbeelding van Vincent van Dam

08-08-2007, 19:57

maybe this?

ld a,(AYREGS+AR_Mixer)
xor 7
ld b,a
and 3
add a,a
add a,a
add a,a
or b
ld (SCC_REG+0x0F),a

edited; can't calculate binary Wink

Van ARTRAG

Enlighted (6935)

afbeelding van ARTRAG

08-08-2007, 21:01

great !!
I'm going to test it right now
Thanks

EDIT
Perfect! Thanks again!

Van jltursan

Prophet (2619)

afbeelding van jltursan

05-06-2008, 14:48

As usual when using rapidshare, the replayer sources posted in the first message of this thread, ayfxpt3_wip.rar have disappeared. I've been looking for the file in Shiru's page; but seems that actually they're not public anymore.

Anyone out there who can provide a link to this?

Van Huey

Prophet (2694)

afbeelding van Huey

06-06-2008, 13:03

I still have the file on my computer. Should it be possible for MRC to include it in the downloads database?

@jltursan: You got mail.

Van jltursan

Prophet (2619)

afbeelding van jltursan

06-06-2008, 13:28

Great!, thanks Huey! Smile

Van ARTRAG

Enlighted (6935)

afbeelding van ARTRAG

06-06-2008, 14:00

Should you need also the SCC patch let me know,
we did it for our msxdev'11 entry
Tongue

Pagina 5/11
1 | 2 | 3 | 4 | | 6 | 7 | 8 | 9 | 10