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

#14
Posts: 290
Threads: 3
Thanks Received: 40
Thanks Given: 1
Joined: Apr 2012
Reputation: 9
Status
None
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.

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?

Quote:And finally, what is the difference between "MathValue" and "MathValue!" ?

No idea. What assembler are you using/where are you seeing that?


GET A SILK BAG FROM THE GRAVEYARD DUCK TO LIVE LONGER.

Brave New World
  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: 18 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite