Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
CSDb User Forums


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

Registered: Sep 2015
Posts: 7
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-04 00:39
Martin Piper

Registered: Nov 2007
Posts: 374
https://msdn.microsoft.com/en-us/library/windows/desktop/ms6816..
2016-12-04 01:25
Groepaz

Registered: Dec 2001
Posts: 7971
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 08:36
Jason Page

Registered: Sep 2015
Posts: 7
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 09:19
Jason Page

Registered: Sep 2015
Posts: 7
Ahh..

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

Registered: Jun 2002
Posts: 1210
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 12:19
JackAsser

Registered: Jun 2002
Posts: 1210
Or generate a binary file an send a bload command
2016-12-04 13:04
Henning

Registered: Oct 2015
Posts: 2
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 17:09
Groepaz

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

Registered: Sep 2015
Posts: 7
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
Matt
TheRyk/MYD
Powerslave/Tronix
Nafcom/P.o.L.
redback
Almighty God/L64/Ons..
Martin Piper
saulc12
Guests online: 53
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 The Shores of Reflec..  (9.7)
4 Coma Light 13  (9.6)
5 Lunatico  (9.6)
6 Comaland 100%  (9.6)
7 Incoherent Nightmare  (9.5)
8 Wonderland XII  (9.5)
9 Comaland  (9.5)
10 Wonderland XIII  (9.5)
Top onefile Demos
1 Dawnfall V1.1  (9.5)
2 Daah, Those Acid Pil..  (9.4)
3 SidRok  (9.4)
4 Treu Love [reu]  (9.4)
5 Tunnel Vision  (9.3)
6 Dawnfall  (9.3)
7 One-Der  (9.2)
8 Globe 2016 [reu]  (9.2)
9 Hardware Accelerated..  (9.2)
10 Safe VSP  (9.1)
Top Groups
1 Booze Design  (9.4)
2 Oxyron  (9.4)
3 Censor Design  (9.3)
4 Crest  (9.3)
5 Camelot  (9.2)
Top Original Suppliers
1 Derbyshire Ram  (9.3)
2 hedning  (9.2)
3 Jazzcat  (9.1)
4 Fungus  (9.0)
5 Irata  (9.0)

Home - Disclaimer
Copyright © No Name 2001-2017
Page generated in: 1.955 sec.