Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Copperhead ! (Registered 2024-05-08) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Memory transfer to c64 Ram in Vice from another PC program
2016-12-03 21:22
Jason Page

Registered: Sep 2015
Posts: 87
Memory transfer to c64 Ram in Vice from another PC program

I'm just toying with the idea of writing some c64 code again, after 28 years!

I'm wondering if there's a way to transfer data from a PC tool directly to the c64 RAM at runtime when running vice64 (for updating graphics in real time when developing, for example...)

I guess one way would be to have an rs232 setup on vice64, and handle the transfer that way.

Is that the best route, or could it be done via the monitor commands in vice64? I see that there's a bunch of commands such as monitorserver, but can't find much info on what they allow you to do.

Finally, does anything exist (source code) for doing this kind of thing?

Cheers,
Jason
2016-12-03 23:39
Martin Piper

Registered: Nov 2007
Posts: 644
https://msdn.microsoft.com/en-us/library/windows/desktop/ms6816..
2016-12-04 00:25
chatGPZ

Registered: Dec 2001
Posts: 11136
urks, poking into applications memory directly, thats a terrible idea ;_;

the remote protocoll would be perfect for this.... reminds me i wanted to make a "codenet" equivalent that works with it =P

https://sourceforge.net/p/vice-emu/code/HEAD/tree/trunk/vice/sr..

just open a connection to localhost port 6510 when remote monitor is enabled
2016-12-04 07:36
Jason Page

Registered: Sep 2015
Posts: 87
Groepaz: Thanks for this. I guess that I'd then need to modify the vice source for my own purposes (Vice only has memdump available, which is dumping the c64 RAM, not writing to it).

Martin: not sure how I'd get a handle to the c64 emulator memory within vice via this function... maybe I'm missing something.

Thanks for your help!
Cheers
Jason
2016-12-04 08:19
Jason Page

Registered: Sep 2015
Posts: 87
Ahh..

Or I just generate a text string using the fill command and all the data that's requiried....
2016-12-04 09:42
JackAsser

Registered: Jun 2002
Posts: 1990
Quote: Ahh..

Or I just generate a text string using the fill command and all the data that's requiried....


> c000 13 37 ....
2016-12-04 11:19
JackAsser

Registered: Jun 2002
Posts: 1990
Or generate a binary file an send a bload command
2016-12-04 12:04
Henning
Account closed

Registered: Oct 2015
Posts: 3
I have a hardware project to push data from the PC into a real C64 via USB -> Userport.

However, I have also made a patch for vice to emulate the device. See:

http://henning-bekel.de/xlink/
http://henning-bekel.de/xlink/#vice-emulation

In a nutshell, using the patched vice and an xlink kernal in it, you can do sth like

$ xlink -d shm load -a 0x4000 foo.bin
2016-12-04 16:09
chatGPZ

Registered: Dec 2001
Posts: 11136
Jason: feel free to add the commands you need and send us a patch :)
2016-12-08 22:45
Jason Page

Registered: Sep 2015
Posts: 87
Thanks, all!
Really appreciate your feedback here.

Cheers,
Jason
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
hedning/G★P
bugjam
iceout/Avatar/HF
Twilight/Excess/Arcade
Fred/Channel 4
Martinland
Apollyon/ALD
Clayboy
Guests online: 134
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Original Suppliers
1 Black Beard  (9.7)
2 Derbyshire Ram  (9.5)
3 hedning  (9.2)
4 Baracuda  (9.1)
5 Jazzcat  (8.6)

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