Well, this will surely help me a lot. Thanks again. My problem will be determining the ammount of data to copy, as I don't know how big the routines are. Of course, I suppose I could always stick a label at the end of what I need to copy and set the difference between that and the beginning of the routines to bc, and it would be fool proof, yes? no? Im crazy?
-gamefreak
Greyscale Testing Program
Moderator: MaxCoderz Staff
- thegamefreak0134
- Extreme Poster
- Posts: 455
- Joined: Mon 23 Jan, 2006 10:09 pm
- Location: In front of a Computer, coding
- Contact:
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
That's what I did in my sample, and yes, it should be fool-proof.thegamefreak0134 wrote:Well, this will surely help me a lot. Thanks again. My problem will be determining the ammount of data to copy, as I don't know how big the routines are. Of course, I suppose I could always stick a label at the end of what I need to copy and set the difference between that and the beginning of the routines to bc, and it would be fool proof, yes? no? Im crazy?
-gamefreak
- thegamefreak0134
- Extreme Poster
- Posts: 455
- Joined: Mon 23 Jan, 2006 10:09 pm
- Location: In front of a Computer, coding
- Contact:
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
thegamefreak0134 wrote:Ho Ho! This means I can use it for sure!
On a more sensible note, Brass now supports relocatable blocks of code, adjusting all the labels for you. Look up the ".relocate" and ".endrelocate" directives on the website to see an example. It's not terribly well tested, but I had a go with a few of the things in Microhertz, copying the scene (with the ldir method above) to plotSScreen then doing a "jp plotSScreen" - it seemed to work fine.
- thegamefreak0134
- Extreme Poster
- Posts: 455
- Joined: Mon 23 Jan, 2006 10:09 pm
- Location: In front of a Computer, coding
- Contact: