Whats wrong with this code?

Started by CosmoCortney, June 28, 2012, 11:13:24 PM

Previous topic - Next topic

CosmoCortney

Hi, after long time, I more or less finished this code.
But the If-Equal Conditional does not work. I checked in the Memory viewer, how the value behaves. Everything I allright there. The IF-Not Conditional works fine. But the If Equal doesn. I also tested to make an IF-Greater than Conditional. But it does not work too.
Here's the code. Only have a look to the purple lines:

48000000 801B7780
DE000000 80008180
12001D3A 0000000A
E0000000 80008000
48000000 801B7780
DE000000 80008180
12001D2C 0000001D
E0000000 80008000
48000000 801B7780
DE000000 80008180
12001D2E 00000000
E0000000 80008000
48000000 801B7780
DE000000 80008180
12001D36 00000000
E0000000 80008000
236E3EA0 CE7DB381 # IF Not Equal
48000000 801B96EC # then
DE000000 80008180
1200BDFE 00000001
E0000000 80008000 # Ends Contitional
216E3EA0 CE7DB381 # If Equal
48000000 801B96EC # then
DE000000 DE000000
1200BDFE 00000020
E0000000 80008000 # End Conditional


Everything works fine, except the IF-Equal line. Still nothing happens

CrimsoN@DC

#1
Does the E0 line end the conditional? I thought it just reset the po/ba.  Try replacing the first purple E0 line with E2100001 80008000 , and not use the if equal condition, because putting E21 inverses the statement.  I would copu + paste an example, however I'm on my hpone /:

Edit:
I was wrong, look at the last DE line, it won't write because the memory range isn't located between DE00, or 0000.  Fix the DE line, and it should work, if not, try my other suggestion.
Gotta question?  PM me and hopefully I can help ^^

My website:
Disturbed Core

CosmoCortney

woow, i did not see the DE line is invalid. i must be a copiyng mistake.
thank you so much for telling me.
i had to edit 2 lines completely new. but anyway. thanks^^

here's the code's topic:
http://wiird.l0nk.org/forum/index.php/topic,9582.msg80886.html#msg80886