Users browsing this thread: 14 Guest(s)
Learning Magic

#15
Posts: 763
Threads: 83
Thanks Received: 55
Thanks Given: 7
Joined: Apr 2015
Reputation: 22
Status
Obliviscence
(07-05-2012, 09:05 PM)Synchysi Wrote: The first thing I see is that you're inserting more bytes than you're overwriting, which can cause a multitude of issues. This is likely what's causing you to see constantly changing values as you scroll up and down the magic list. I'm actually rather surprised you haven't seen a complete game crash yet.

What you'll need to do to insert code is, in this case, overwrite Gogo's code with a JSR (Jump to SubRoutine) to some free space, where you'd then write your custom function. Conveniently, the code you're overwriting is four bytes, which is the same size as a JSR. The free space in bank C3 starts at $C3F091 and continues to the end of the bank, or $C3FFFF. Don't forget the RTS (Return To Subroutine) at the end.

The code immediately following this code is the code that populates Gogo's magic list, which is not accessible any longer, so I'm not changing the rom size. I'm not quite that newbish. However, I never looked to see if there was a jump into the middle of the code, which could now be off.

(07-05-2012, 09:05 PM)Synchysi Wrote: Secondly, it doesn't seem any operations are actually being performed on your data. All you're doing is loading data into the accumulator and storing it in RAM locations, but nothing's being done with it afterward. From what I could gather, you're trying to make one magic list shared amongst all the characters, is that right?

I am making all actors share the same 12 lists. I am using the RAM map which tells what each address was for. I guess I assumed that if I plugged in the divider values it would automatically put the results in the product/remainder address. Come to think of it, I did see a subroutine in the C2 bank dealing with multiplication and division... I just don't remember seeing it used here in the existing code.

  Find
Quote  



Messages In This Thread
Learning Magic - by B-Run - 06-28-2012, 12:34 PM
RE: Learning Magic - by madsiur - 06-28-2012, 07:01 PM
RE: Learning Magic - by B-Run - 06-28-2012, 08:19 PM
RE: Learning Magic - by madsiur - 06-28-2012, 10:24 PM
RE: Learning Magic - by B-Run - 06-29-2012, 09:07 AM
RE: Learning Magic - by B-Run - 06-30-2012, 10:49 PM
RE: Learning Magic - by madsiur - 07-01-2012, 08:24 AM
RE: Learning Magic - by B-Run - 07-01-2012, 10:09 PM
RE: Learning Magic - by Angelo26 - 07-01-2012, 11:26 PM
RE: Learning Magic - by madsiur - 07-01-2012, 11:42 PM
RE: Learning Magic - by B-Run - 07-01-2012, 11:47 PM
RE: Learning Magic - by madsiur - 07-02-2012, 12:00 AM
RE: Learning Magic - by B-Run - 07-05-2012, 07:38 PM
RE: Learning Magic - by Synchysi - 07-05-2012, 09:05 PM
RE: Learning Magic - by B-Run - 07-05-2012, 09:32 PM
RE: Learning Magic - by Synchysi - 07-05-2012, 10:33 PM
RE: Learning Magic - by B-Run - 07-06-2012, 07:40 AM
RE: Learning Magic - by B-Run - 07-07-2012, 02:32 PM
RE: Learning Magic - by B-Run - 07-13-2012, 05:59 PM
RE: Learning Magic - by SSJ Rick - 07-13-2012, 06:06 PM
RE: Learning Magic - by B-Run - 07-13-2012, 07:16 PM
RE: Learning Magic - by SSJ Rick - 07-13-2012, 07:23 PM
RE: Learning Magic - by B-Run - 07-13-2012, 08:26 PM
RE: Learning Magic - by Angelo26 - 07-13-2012, 08:56 PM
RE: Learning Magic - by B-Run - 07-14-2012, 07:25 AM

Forum Jump:

Users browsing this thread: 14 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite