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 > 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: 634
https://msdn.microsoft.com/en-us/library/windows/desktop/ms6816..
2016-12-04 00:25
chatGPZ

Registered: Dec 2001
Posts: 11108
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: 1989
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: 1989
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: 11108
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
cba
Mike
Apollyon/ALD
Board Rider/Commodor..
Monte Carlos/Cascade
Didi/Laxity
Youth
Smasher/F4CG
ϵʟʞ/ₐтₐ
uneksija
Guests online: 145
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 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Stinsen  (9.6)
4 Mutetus  (9.6)
5 Linus  (9.6)

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