| |
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 |
|
| |
Martin Piper
Registered: Nov 2007 Posts: 722 |
https://msdn.microsoft.com/en-us/library/windows/desktop/ms6816.. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
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 |
| |
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 |
| |
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.... |
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
Quote: Ahh..
Or I just generate a text string using the fill command and all the data that's requiried....
> c000 13 37 .... |
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
Or generate a binary file an send a bload command |
| |
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 |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
Jason: feel free to add the commands you need and send us a patch :) |
| |
Jason Page
Registered: Sep 2015 Posts: 87 |
Thanks, all!
Really appreciate your feedback here.
Cheers,
Jason |