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: 722
https://msdn.microsoft.com/en-us/library/windows/desktop/ms6816..
2016-12-04 00:25
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
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: 2014
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: 2014
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: 11386
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
Devia/Ancients
Flashback
Freeze/Blazon
rambo/Therapy/ Resou..
MWR/Visdom
katon/Lepsi De
LightSide
Martin Piper
Alakran_64
Guests online: 165
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 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (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 Triad  (9.3)
5 Censor Design  (9.3)
Top Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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