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 > MMC Retro Replay - writing to SD card?
2009-09-22 20:39
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
MMC Retro Replay - writing to SD card?

Maybe not the correct place to post this but it doesn't seem to fit anywhere else :)

Is anyone aware of a plugin for RR that enables writing to a mounted .d64 file or alternatively, is it possible to use the Action Replay-type features to dump/load the entire memory to a file on the SD card?
2009-09-22 21:12
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
They know all that stuff here:
http://www.retrohackers.com/
2009-09-22 21:58
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Thanks Jan, I'll take a look.
2009-09-23 04:43
chatGPZ

Registered: Dec 2001
Posts: 11386
but to answer your question, no such plugin(s) exist =P
2009-09-23 05:51
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Neil: for workdisk, just use a D64, and save to fill it up.
when full, copy latest workfile to a new D64, and continue.
that way its safe, and diskbugs shouldnt occur.
170k for a d64 is nothing in 2009, you can afford it :D
2009-09-23 06:04
chatGPZ

Registered: Dec 2001
Posts: 11386
again for rambones: no such plugin(s) exists.
2009-09-23 06:33
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Quote: Neil: for workdisk, just use a D64, and save to fill it up.
when full, copy latest workfile to a new D64, and continue.
that way its safe, and diskbugs shouldnt occur.
170k for a d64 is nothing in 2009, you can afford it :D


Heh :)

But are you talking about on a MMC cart on a physical C64 or with, say, VICE?

There's nothing I've found yet that will allow you to write to a D64 on the C64 (via the MMC/Replay) but yes, I've been doing similar to what you describe with VICE and it works very well.

Just want to be able to do the same on the proper hardware :)
2009-09-23 06:36
chatGPZ

Registered: Dec 2001
Posts: 11386
on real hardware you can currently do it with the (much more expensive) 1541u.
2009-09-23 07:35
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Quote: on real hardware you can currently do it with the (much more expensive) 1541u.

Let's hope those pre-orders turn into orders sometime soon :)
2009-09-23 07:49
Devia

Registered: Oct 2004
Posts: 401
So all you need is an OSX rendition of NetDrive and you can redirect all KERNAL disk I/O to your MAC and load save directly from within SDI.. almost ideal?
2009-09-23 08:10
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Quote: So all you need is an OSX rendition of NetDrive and you can redirect all KERNAL disk I/O to your MAC and load save directly from within SDI.. almost ideal?

I looked at netdrive but wasn't sure it was easy to setup on the Mac.

But yes, that would be very, very sweet if it could happen :D
2009-09-23 08:23
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Actually that wasn't very clear.

What I meant was, I tried building netdrive on my Mac but there were plenty of errors. I guess someone could port the code to work on unix platforms - someone did it for codenet (which builds fine on Mac).
2009-09-23 09:22
Kristian

Registered: Apr 2002
Posts: 126
Quote: on real hardware you can currently do it with the (much more expensive) 1541u.

And with the (compared to 1541u much cheaper) C64TPC.
2009-09-23 09:44
chatGPZ

Registered: Dec 2001
Posts: 11386
yeah well, or rr-net + netdrive or sdiec or iecata or or or...any of the other rather incompatible things that only work with stuff using kernal loading :)
2009-09-23 12:35
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Quote: And with the (compared to 1541u much cheaper) C64TPC.

Damn, that looks ace but seems no client for Mac/unix/etc. :(

I've emailed the guy to ask if one is available.
2009-09-23 18:10
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Neil: when you get a 1541u, you dont need: 1) disks, 2) any other cartridge, 3) your mmc money are wasted and you can sell the crap :D
2009-09-23 18:38
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Quote: Neil: when you get a 1541u, you dont need: 1) disks, 2) any other cartridge, 3) your mmc money are wasted and you can sell the crap :D

I hear you Jan :)

Actually, in the MMC/Replay's defence, it is ace for cross-platform coding. Unbelievably easy to compile with 64TASS and throw the binaries at the C64 wirelessly over the network. It's so easy and simple it borders on being silly :)
2009-09-24 09:44
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Well, after a session of head-scratching last night, between us me and Geir managed to make it work.

I'm using now using netdrive on an XP virtual machine via Parallels Desktop (until I can get someone to build a unix/OSX version of netdrive) using the UNDOCUMENTED "-W" (write) mode. Am now able to load and save SDI song files over wireless network to my MacBook running XP in a virtual machine, LOL.

Only problem I've got at the moment is that netdrive seems to ignore the specified path and reads/writes files from the folder where i run netdrive from. Anyone know why?

I've got someone looking at porting netdrive over to unix so I'll share it on here if it's successful.

Thanks for everyone's input and thanks to Geir for his endless patience and help.

After all this, I bet my 1541U turns up tomorrow LOL
2009-09-24 09:59
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
Neil: when you get a 1541u, you dont need: 1) disks, 2) any other cartridge, 3) your mmc money are wasted and you can sell the crap :D

except if you want actually properly working ethernet, or maybe a correctly working freezer in AR/RR ... then 1541u isnt quite there =P

Quote:
I've got someone looking at porting netdrive over to unix so I'll share it on here if it's successful.

get "diskimagery64" ... its a nice frontend to warpcopy that works in *nix (and the developer is even a osx guy)...and it can work as a server for netdrive too.

2009-09-24 14:01
clonK
Account closed

Registered: Aug 2008
Posts: 65
Quote: Quote:
Neil: when you get a 1541u, you dont need: 1) disks, 2) any other cartridge, 3) your mmc money are wasted and you can sell the crap :D

except if you want actually properly working ethernet, or maybe a correctly working freezer in AR/RR ... then 1541u isnt quite there =P

Quote:
I've got someone looking at porting netdrive over to unix so I'll share it on here if it's successful.

get "diskimagery64" ... its a nice frontend to warpcopy that works in *nix (and the developer is even a osx guy)...and it can work as a server for netdrive too.



I haven't had 1 single problem with ethernet since firmware 1.6. Am I just lucky? Are not each 1541U version born equal?
I have a version 2. I use ethernet a lot too, mainly codenet, either firing executables over or using warpcopy to send/receive .d64's.
I haven't had any freezer issues since the custom 1.66 firmware (touch wood), but I s'pose more testing is needed on that score.
The only thing missing for me is a built in sid player.
Anywayz.. I digress..
2009-09-24 14:06
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
I haven't had 1 single problem with ethernet since firmware 1.6. Am I just lucky? Are not each 1541U version born equal?


try using codenet and upload a file to $d000 -> booom crash (should work fine, as it does on RR/MMCR)

it works with warpcopy and some other programs, thats true.

Quote:
I haven't had any freezer issues since the custom 1.66 firmware


i am talking about AR freezer.... start AR, hit f3 ("normal reset"), press freeze, then f3 again ("restart") -> booom crash (should work just fine, as it does on real AR and RR/MMCR too)
2009-09-24 14:14
GT
Account closed

Registered: Sep 2008
Posts: 308
Netdrive.exe worked very good. Finally I can read and write files directly on PC/MAC using SDI on the real thing without a 15xx diskdrive. Kudos to Neil for digging into it. Nice tool Graham!
2009-09-24 15:58
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Quote: Quote:
Neil: when you get a 1541u, you dont need: 1) disks, 2) any other cartridge, 3) your mmc money are wasted and you can sell the crap :D

except if you want actually properly working ethernet, or maybe a correctly working freezer in AR/RR ... then 1541u isnt quite there =P

Quote:
I've got someone looking at porting netdrive over to unix so I'll share it on here if it's successful.

get "diskimagery64" ... its a nice frontend to warpcopy that works in *nix (and the developer is even a osx guy)...and it can work as a server for netdrive too.



I've got DiskImagery but it has a design issue (as far as I can see). When you share your Mac files to the network, you have to select files to expose to the C64. If you select a folder it complains and tells you to select files. What that means is you can't write anything back to the Mac from the C64. Even tried point it at a D64 image and writing to that but it complains and fails.

I had a look through the source to see if I could fix it but it's written with some weird build engine, QT-something, and I couldn't be arsed to try to make it build.

I've emailed the author to see if he knows why writing back to the Mac is not working properly.

Unless I'm doing something wrong, of course.
2009-09-24 16:02
chatGPZ

Registered: Dec 2001
Posts: 11386
QT is a portable gui framework, you must install the necessary library files for QT, and then run "qmake" once in the source dir. then it builds fine.
2009-09-24 18:27
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Quote: QT is a portable gui framework, you must install the necessary library files for QT, and then run "qmake" once in the source dir. then it builds fine.

OK, I see that now. :)

Do you use DiskImagery? I'm just curious to know if anyone has managed to write files back from 64->Mac?

Also, does anyone know the author? I've tried emailing him but no response so far (few days ago).

2009-09-24 18:44
chatGPZ

Registered: Dec 2001
Posts: 11386
i am using it (but only for warpcopy, not netdrive, so cant tell wether it works) and i have mailed with the author too... maybe he is on vacation or something :)
2009-09-25 02:08
A Life in Hell
Account closed

Registered: May 2002
Posts: 204
Quote: Well, after a session of head-scratching last night, between us me and Geir managed to make it work.

I'm using now using netdrive on an XP virtual machine via Parallels Desktop (until I can get someone to build a unix/OSX version of netdrive) using the UNDOCUMENTED "-W" (write) mode. Am now able to load and save SDI song files over wireless network to my MacBook running XP in a virtual machine, LOL.

Only problem I've got at the moment is that netdrive seems to ignore the specified path and reads/writes files from the folder where i run netdrive from. Anyone know why?

I've got someone looking at porting netdrive over to unix so I'll share it on here if it's successful.

Thanks for everyone's input and thanks to Geir for his endless patience and help.

After all this, I bet my 1541U turns up tomorrow LOL


i'm using this natrivly on linux, and i think the patched version should also compile on a mac - i don't have a mac right now tho. i'll re-upload the patch when i get home if anyone is interested in it.
2009-09-25 07:01
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Quote: i'm using this natrivly on linux, and i think the patched version should also compile on a mac - i don't have a mac right now tho. i'll re-upload the patch when i get home if anyone is interested in it.

Fuck yeah!

:D
2009-09-29 13:50
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
I've sorted it;

Netdrive For Linux/Unix

Hope someone else besides me finds this useful :)

Neil
2009-09-29 17:57
Angel of Death

Registered: Apr 2008
Posts: 211
Quote: I hear you Jan :)

Actually, in the MMC/Replay's defence, it is ace for cross-platform coding. Unbelievably easy to compile with 64TASS and throw the binaries at the C64 wirelessly over the network. It's so easy and simple it borders on being silly :)


a bit late of a reaction. But could you elaborate on that?
You compile something on your mac, send it over wireless ethernet (?) to your mmc... and then?
You just retrieve it from the card in your mmc.
I'm just not that familiar with devices like mmc (yet)
But I'd like a nice solution fro x-compiling straight to the '64.
2009-09-29 19:01
hollowman

Registered: Dec 2001
Posts: 474
Quote: a bit late of a reaction. But could you elaborate on that?
You compile something on your mac, send it over wireless ethernet (?) to your mmc... and then?
You just retrieve it from the card in your mmc.
I'm just not that familiar with devices like mmc (yet)
But I'd like a nice solution fro x-compiling straight to the '64.


http://www.oxyron.de/html/freplay.html
Quote:

Network server CodeNet

CodeNet is a special transfer server which allows sending of binary data or program files directly into the C64 memory and sending of an execute command. You can use it for easy cross assembling. The server is started by entering the CODENET command (available on the F6 key).


So you flash the retro replay or mmc replay with the tfr rom, then you can press F6 in basic to enter codenet on c64, run a script on the pc which sends the file to the c64 and tells it to execute it.
And preferably you will do as Devia to get the c64 back to codenet receive mode


http://noname.c64.org/csdb/forums/index.php?roomid=11&topicid=3..
Quoting Devia

In my code I then usually setup and NMI interrupt (if I don't use NMI for other stuff) that does something like:
	lda	#$37
	sta	$01
	lda	#$18		;Select Bank 3
	sta	$de00		;in the Retro Replay
	jsr	$FF81		;CINT
	cli
	jmp	$9800		;Jump to CodeNet

This enables me to simply press RESTORE on C64 to terminate my program and return to CodeNet.
2009-09-29 20:21
clonK
Account closed

Registered: Aug 2008
Posts: 65
I have relaunch64 emulator setting set to: E:\C64\relaunch64\sendC64.bat

my sendC64.bat contains:
c:\codenet\codenet -n 192.168.1.64 -x %~f1

so I run codenet on my C64 with 1541U, then I can compile and run my relaunch code str8 on my C64.

That's all I've done so far. As to the problems that Groepaz mentions with ethernet on the 1541U, I'm not sure how that'll affect what you want to do. Obv those problems don't exist in the MMC replay.
2009-09-30 08:28
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Yeah, I do pretty much the same as hollowman and clonK.

You can grab the source code to 64tass and build it yourself (you need to install the Mac Dev tools if you're on Mac. Download them from Apple for free).

Then use 64tass as a command-line compiler, send the resulting binary files to the C64 as described.

Nice idea putting the Codenet restart in your code. :)
2009-09-30 17:17
Angel of Death

Registered: Apr 2008
Posts: 211
woohoow!
Now that's something I can use.
It's time to start ordering some stuff! :)

Thanks people...
2009-09-30 17:46
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Don't hesitate to ask if you get stuck. Having just gone through the pain of setting this stuff up on the same platform as you I can probably be of some use while it's still fresh in my head :)
2009-10-05 13:37
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
Quote: http://www.oxyron.de/html/freplay.html
Quote:

Network server CodeNet

CodeNet is a special transfer server which allows sending of binary data or program files directly into the C64 memory and sending of an execute command. You can use it for easy cross assembling. The server is started by entering the CODENET command (available on the F6 key).


So you flash the retro replay or mmc replay with the tfr rom, then you can press F6 in basic to enter codenet on c64, run a script on the pc which sends the file to the c64 and tells it to execute it.
And preferably you will do as Devia to get the c64 back to codenet receive mode


http://noname.c64.org/csdb/forums/index.php?roomid=11&topicid=3..
Quoting Devia

In my code I then usually setup and NMI interrupt (if I don't use NMI for other stuff) that does something like:
	lda	#$37
	sta	$01
	lda	#$18		;Select Bank 3
	sta	$de00		;in the Retro Replay
	jsr	$FF81		;CINT
	cli
	jmp	$9800		;Jump to CodeNet

This enables me to simply press RESTORE on C64 to terminate my program and return to CodeNet.


Is anyone using the press-RESTORE-to-jump-to-codenet trick?

I tried to implement it but it wouldn't work in my code so I tried just resetting the C64 and typing SYS38912 to simulate the JMP $9800 line in the code but nothing happens.

Does anyone have an up-to-date memory map for the TFR08 cart?

Thanks
2009-10-05 14:02
neilbaldwin
Account closed

Registered: Sep 2009
Posts: 48
I should've added : when I say it doesn't work, the RESTORE key gets trapped and it seems to attempt to restart the C64 but all that happens is the border colour gets reset and my program keeps running (just scrolling some text as a test).
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
Andy/AEG
kbs/Pht/Lxt
Exile/Anubis
Alakran_64
iAN CooG/HVSC
HOL2001/Quantum
Guests online: 114
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 Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

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