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
 
... 13 posts hidden. Click here to view all posts....
 
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.
2011-07-06 12:41
spider-j

Registered: Oct 2004
Posts: 498
if forgot to test changing subdirs with netdrive. this doesn't work in iec-cmd-ide64 or in sd2iec version. $d020 turns red and directory is not changed.

this is the console output on pc when trying to change directory.
/home/spider/C64/sidtest/subdir
0 OPEN 2,6,0,SUBDIR
0 CHKIN 6,0
.CLOSE 6,0
/home/spider/C64/sidtest/, *
0 OPEN 1,6,0,$
0 CHKIN 6,0
........CLOSE 6,0


just to be 100% sure that nothing went wrong when compiling netdrive or whatever i also checked that changing directory with tfr and netdrive works from the ready-prompt via
DOS"CD:<dirname>"


and this is what the console output is then
CMD: cd:subdir
HuntPath: , subdir, subdir
path: subdir/
0 OPEN 0,6,15,cd:subdir
OPEN repeat 0,6,15,CD:SUBDIR
CLOSE 6,15
/home/spider/C64/sidtest/subdir/, *
0 OPEN 0,6,0,$
......CLOSE 6,0


1541u model 1 direct sd iec device (drive 9) shows slighty different behaviour as netdrive. you get the same error as mentioned in my previous post on startup, but you can enter a subdirectory. but then you can't leave the directory anymore via INS/DEL key. [ no console output this time :P ]
2011-07-06 13:59
6R6

Registered: Feb 2002
Posts: 245
I got RRnet with TFR inserted on my c64 with
Codenet IP: a.b.c.64
Netdrive IP: a.b.c.100

My winXP IP is: a.b.c.42
My windows firewall is off.

On pc side i start:
netdrive -r "c:\tmp\sids"

On c64 i change device number to dos"6
and i use the "net" function to set all vectors
at 0300-0334 to work with the netdrive.

Now when i try to load a dir or load a file nothing happnes
in the pc console window.
What am I doing wrong with my netdrive setup ?

I can send files to my c64 using codenet. So that part is fine.
2011-07-06 20:59
6R6

Registered: Feb 2002
Posts: 245
[EDIT]
v0.6902 - Testing Long filename support :
http://privat.bluezone.no/glennrg/sp64/

Works here with vice and windoze filesystem.
(dont use the instdel key in vice)
Does it works with longfilenames on iec, netdrive, 1541u etc. etc. etc. ?
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
Steffan/BOOM!
MWR/Visdom
Barfly/Extend
DJB/Onslaught / Blue..
algorithm
zscs
Guests online: 105
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 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (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 Censor Design  (9.3)
5 Triad  (9.3)
Top Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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