SCC Music on Altera DE 1

Page 1/2
| 2

By barroidh

Master (163)

barroidh's picture

24-02-2013, 18:32

When trying to play SCC music disk image ( SCC Musix demo disk ) on the Altera DE 1 , there is no sound. ( Caro's msx3 bios ) . For rom images the SCC sound works though. Does it need extra bios or commands to use a SCC tracker program ?

Login or register to post comments

By Meits

Scribe (5481)

Meits's picture

24-02-2013, 19:23

You mean the music disk by Fuzzy Logic?

By barroidh

Master (163)

barroidh's picture

24-02-2013, 20:34

The music disk by fony , scc musix with multiple tracks. SCC Musixx tracker and SCC blaffer program have no sound.

By larsthe18th

Master (159)

larsthe18th's picture

26-07-2014, 21:29

This is one of my favorite SCC demo's.
Unfortunately this demo does not work on the Flashrom SD SCC cartridge.
I have replaced the SCC detection in this demo,
so it now allso works on the Flashrom SD SCC and other SCC cards.

Tested on:
- Nemesis 2 Konami Cartridge (Real Hardware)
- Flashrom SD SCC (Real Hardware) Hold [S] key While booting
- Flashrom SCC (Emulated)
- Flashrom SCC+ (Emulated)
- Konami SD-Snatcher Sound Cartridge (Emulated)
- Konami Snatcher Sound Cartridge (Emulated)

I could NOT test it on:
- One Chip MSX SCC
- PlaySoniq SCC

Please let me know if this works on these devices.

Note:
SCC should be placed in a primary slot.

Download the patched DSK file HERE

By larsthe18th

Master (159)

larsthe18th's picture

28-07-2014, 15:14

Oops the link broke.... (Damn Upload Sites)

Fuzzy Logic Musix Disc #1 with SCC FIX

By Retrofan

Paragon (1214)

Retrofan's picture

28-07-2014, 18:34

larsthe18th wrote:

I could NOT test it on:
- One Chip MSX SCC
- PlaySoniq SCC

Please let me know if this works on these devices.

Hi, yes, it works also on OCM internal SCC Wink

By larsthe18th

Master (159)

larsthe18th's picture

29-07-2014, 14:37

I'm glad to hear it ...
Thank you for testing it on the OCM Smile

By larsthe18th

Master (159)

larsthe18th's picture

31-07-2014, 00:06

Another SCC Detection patch,
this time for the Clubguide Picturedisk #7

The SCC of the Flashrom SD is now allso working in the The Writing Demo (Fony),
and the second part that plays a sample on SCC.

Clubguide Picturedisk #7 with SCC Fix

Tested on:
- Nemesis 2 Konami Cartridge (Real Hardware)
- Flashrom SD SCC (Real Hardware) Hold [S] key While booting
- Flashrom SCC (Emulated)
- Flashrom SCC+ (Emulated)
- Konami SD-Snatcher Sound Cartridge (Emulated)
- Konami Snatcher Sound Cartridge (Emulated)

I hope these patches wil be added to the MRC DowloadDB...

By ro

Guardian (4109)

ro's picture

31-07-2014, 11:41

Hai Lars,

Thanx for the SCC detection fix. Could you share your code? And maybe elaborate what changed (what was wrong in the first place). (I am the coder of FuzzyLogic's SCC musix disc)

regards, ro (aka shadow)

By ro

Guardian (4109)

ro's picture

31-07-2014, 11:56

did some digging, found the replayer source we used. The SCC search is part of that replayer. It prolly only looks for SCC in primairy slots. Here it is:

;  - - - Search for SCC - - -
SRCSCC:	IN	A,($A8)
	PUSH	AF
	AND	$CF
	PUSH	AF
	
	ADD	A,$10
	CALL	CHECK
	POP	AF
	PUSH	AF
	ADD	A,$20
	CALL	CHECK
	POP	AF
	PUSH	AF
	ADD	A,$30
	CALL	CHECK
	POP	AF
	POP	AF
	OUT	($A8),A
	XOR	A
	RET	
	
CHECK:	OUT	($A8),A	;  Check port
	LD	C,A
	LD	A,($9000)
	LD	D,A
	XOR	A
	LD	($9000),A
	LD	A,($9000)
	OR	A
	JR	Z,NOSCC
	LD	B,A
	XOR	$FF
	LD	($9000),A
	LD	A,($9000)
	CP	B
	JR	NZ,SCCFND
	
NOSCC:	LD	A,D	;  SCC Not found
	LD	($9000),A
	RET	
	
SCCFND:	LD	A,C	;  Yuppy! An SCC has been found!
	AND	$30
	LD	(SCC),A
	POP	AF	;  Stack
	POP	AF	;  A for check
	POP	AF	;  Port-data
	OUT	($A8),A

(c) Michiel Spoor - Fony

By larsthe18th

Master (159)

larsthe18th's picture

31-07-2014, 16:36

ro wrote:

Hai Lars,

Thanx for the SCC detection fix. Could you share your code? And maybe elaborate what changed (what was wrong in the first place). (I am the coder of FuzzyLogic's SCC musix disc)

regards, ro (aka shadow)

Shure no Problem, i hope you're not offended that I changed you code Shocked!

Your code only detects Original Konami SCC Game cartridges with a ROM,
If you use a EMPTY Flashrom cart (no konami SCC game flashed in to it), the SCC will not be detected.

The code below uses a different approach,

# Test 1
- Search for RAM @ 0x8fff in Page 3 ;Test if this is normal RAM
YES -> NORMAL RAM found repeat Test 1 in next slot
NO -> do Test 2

# Test 2
- Write #3F to #9000 to set SCC RAM
- Search for RAM @ 0x9800 in Page 3 ;Test if this is SCC RAM
YES -> SCC Found
No -> repeat test 1 in next slot

;  - - - Search for SCC - - -
CHECK:		out (#a8),a
		ld c,a
;------------------------
		ld hl,#8fff		; Find ram in #8fff, Page 3
		call SRCRAM		; Call Search Ram
		ret z			; IF RAM then Search Next Slot
		inc hl
		ld (hl),#3f		; Write #3F to #9000 to set SCC RAM
		ld hl,#9800		; Find ram in #9800, Page 3
		call SRCRAM		; Call Search Ram
		ret nz			; IF NOT RAM then Search Next Slot
		jr SCCFND		; Found SCC Cart


;SUB - Search Ram
SRCRAM:		ld a,(hl)		; Read Value
		ld b,a			; Backup Value
		cpl			; Invert
		ld (hl),a		; Write Back inverted Value
		cp (hl)			; Compare
		ld a,b			; Restore Value
		ld (hl),a		; Write Back Value
		ret			; Return
		nop
		nop
		nop
		nop
;------------------------
SCCFND:		ld a,c
		and #30
		ld (SCC),a		;Write found scc slot
		pop af
		pop af
		pop af
		out (#a8),a

More SCC Info can be found HERE!

Page 1/2
| 2