Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Sidplay64 sd2iec
2011-07-01 00:14
6R6

Registered: Feb 2002
Posts: 245
Sidplay64 sd2iec

Hello,
I'm thinking about upgrading Sidplay64 to support directory browsing and image (d64,d81) browsing for sd2iec.
I wonder if there are people here interested in this upgrade.
And if the current sidplay64 0.6 performs nicely with
similar devices (uIEC, uiec2ata, mmc2iec, 1541u1, 1541u2).

regards,
6R6
2011-07-01 06:06
chatGPZ

Registered: Dec 2001
Posts: 11386
actually in the german forum64 a bunch of people asked for exactly that :)
2011-07-01 11:30
6R6

Registered: Feb 2002
Posts: 245
To bad I dont spreche german very well.
Anyway, upgrading has started.
I am really short on C64 memory, and I might need some help with bug-testing in this thread.







2011-07-01 15:07
MacGyver
Account closed

Registered: Dec 2001
Posts: 149
At Forum64, English is allowed, too ;)
2011-07-01 19:58
macx

Registered: Mar 2002
Posts: 255
I would not mind using my Infinity as a HVSC boombox.
2011-07-02 00:23
6R6

Registered: Feb 2002
Posts: 245
Here is Sidplay64 TEST VERSION for sd2iec.
With directory and image (d64, d71, d81, i2m) browsing.
Max files and dirs in memory for this version : 170

Directories are marked as DIR and are sorted to
the top of the displayer.
Use return to open a directory.
Use shift+return to go back a directory.

You cannot change directories when shuffle mode is on (Next or Random). You need to set Manual mode with M.

When playing an rsid the border will turn grey.
You can probably exit by pressing space, ctrl, cbm or runstop.
If that doesnt work, hit the panic button (restore).
If that doesnt work, hit the reset button.

A red border means the file was not found, or the file doesnt have a rsid/psid header.
A "no memory error" means there's no memory to relocate sp64.


EDIT: Btw, make sure you only test with sids from the most recent hvsc update.
2011-07-02 01:14
6R6

Registered: Feb 2002
Posts: 245
This is the dir sniffer and sorter.
It puts the dirs at the top of the displayer.
Is it possible to shorten this code, perhaps even make it
sort in a a-z range ?



maxfile		= $03	;Keeps track of # of files in memory
rzp		= $06	;word
countfile	= $f0	;byte
countdir	= $f1	;byte
dzp		= $fc	;word

dirpos		= $d000		;Filenames
flengde		= $daa1		;Table of filename/dirname lengths for each entry in dirpos
				;$01-$10  filename length
				;$81-$90 dirname length

iec_dir_sort
		lda #0
		sta countfile
sort_next		
		jsr scanforfile		;scan for first file entry
		bne bn91
		rts
bn91		sta filevalue+1
		tya
		jsr getpos
		sta dzp+1
		stx dzp

		lda countfile		;set first dir entry to scan
		sta countdir		;for at same position as first file entry
		
		jsr scanfordir
		bne bn92
		rts
bn92		sta dirvalue+1
		tya
		jsr getpos
		sta rzp+1
		stx rzp


		ldy countfile		;filepos
dirvalue	lda #0			;insert dir value
		sta flengde,y
		ldy countdir		;dirpos
filevalue	lda #0			;insert file value
		sta flengde,y
		
		ldy #$0f		;swap names
swap2		lda (dzp),y		;filename
		pha
		lda (rzp),y		;dirname
		sta (dzp),y		;store dirname in new position
		pla
		sta (rzp),y		;store filename in new position
		dey
		bpl swap2
		bmi sort_next		;jmp

getpos		pha
		asl
		asl
		asl
		asl
		tax
		pla
		lsr
		lsr
		lsr
		lsr
		ora #>dirpos		;Filenames at $d000, $d010, $d020 ...
		rts

scanfordir	ldy countdir		;Search dir entries
bn93		lda flengde,y
		bmi dirfound
		iny
		cpy maxfile
		bne bn93
		lda #0			;nothing, so we exit
dirfound	sty countdir
		rts

scanforfile	ldy countfile		;Search file entries
bn94		lda flengde,y
		bpl filefound
		iny
		cpy maxfile
		bne bn94
		lda #0			;nothing available, so we exit
filefound	sty countfile
		rts




2011-07-04 23:18
6R6

Registered: Feb 2002
Posts: 245
Sidplay64 for all drives & devices:
sidplay64_0688.zip

Sidplay64 for CMD, IDE64 & IEC devices (With directory browsing):
sidplay64_0688_iec_cmd_ide64.zip
(CMD = Creative Micro Designs devices)

Sidplay64 for sd2iec (With directory & image browsing):
sidplay64_0688_sd2iec.zip

Keys controls to use:
Return : Load sid file/Open directory/Open image file.
Instdel : Go back one directory level.
M/N/R : Manual selection/Next play/Random play
<- : Fastforward
Spacebar : Reload dir
Restore : Use the panic button when you are stuck.

Sd2iec version:
When in Random or Next mode you cannot open image files,
turn Manual mode on to do so.


Does any of these work with netdrive on device # 6 or 7?
2011-07-05 07:14
Grue

Registered: Dec 2001
Posts: 162
On ide64 it doesnt understand IDE64 filetypes with ,sid suffix, it shows them as "DIR" on browser.

Gloria,sid shows as Gloria DIR
Gloria.sid,sid shows as Gloria.sid DIR
Gloria.sid,prg shows as :0F

I have lots of other ",sid" suffix files on that test dir, I guess :0f refers to number of directory entries before this one.

I managed to browse HVSC structure also from pclink device, with same kind of results, works if ",sid" is renamed to ",prg"

It should work with ide64 native filetypes, pclink renames .sid -> ,sid.

I'm used to play hvsc with pclink from my pc hd on c64, as it would take ages and bit more time to transfer whole hvsc on ide64 drive ;)

edit: I'm using latest ide64 0.91 beta 771 rom
2011-07-06 10:01
6R6

Registered: Feb 2002
Posts: 245
v0.690:

Fixed Grue's issues with IDE64 and filetypes.
It works through pclink too.

Fixed a bug where sidplay64 code was relocated when loading a RSid file with not enough relocation pages. It now loads and run those files with no return to displayer.

http://privat.bluezone.no/glennrg/sp64/

2011-07-06 11:30
spider-j

Registered: Oct 2004
Posts: 498
tested all three 0.690 versions (normal, iec, sd2iec) with netdrive (drive 6)
on startup all versions show the same error message:
"@6: 31, SYNTAX ERROR, 00, 00"
but when you ignore this and hit return, everything works fine in every version.
 
... 13 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
CyberBrain/NoName
Guests online: 68
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.049 sec.