Commodore 64 (C64) Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Vice snapshot patcher

 
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> Scene
View previous topic :: View next topic  
Author Message
DanPhillips
C64 Legend
C64 Legend


Joined: 14 May 2002
Posts: 244

PostPosted: Wed Dec 26, 2012 7:53 pm    Post subject: Vice snapshot patcher Reply with quote

Hey,

So I needed a nice way of updating bits of Armalyte, without some of the source data, a lot of it was stored directly as binary anyway while we were writing it...And building the necessary data back up and loading it properly is proving troublesome and a bit slow.
After a bit of experimentation the quickest way I've found is to patch a Vice snapshot.

Use Tass to output a scatter link file, 2 bytes for length 2 bytes for memory offset followed by the block assembler (Dasm has a similar output format)

Pass in:

The snapshot
The scatter link file
The output filename
The new program counter

And it'll go through patching your new code into the snapshot, then saves out a new one Smile

If it sounds useful drop me a PM and I'll email the exe and source.

Cheers

Dan
_________________
Lead...Pro...Armathing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Commodore 64 (C64) Forum Index -> Scene All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Tip: Get C64 Forever for super-comfy C64 emulation with pre-installed games, demos and other goodies!


Powered by phpBB © 2001, 2005 phpBB Group