Kodewerx
https://www.kodewerx.org/forum/

NDS AR Code Type Information
https://www.kodewerx.org/forum/viewtopic.php?f=11&t=98
Page 6 of 6

Author:  hodspimp [ Tue Aug 26, 2008 8:41 pm ]
Post subject:  Re: NDS AR Code Type Information

hay chicken seeing on how u know this stuff can I pm for codes..??cuzz I dont want to get u made by not lising to ur sig..
if u will I have a topic on code request fourm just look for my user name or my total posts
Thanx

Author:  Hextator [ Tue Jun 23, 2009 5:57 pm ]
Post subject: 

I realize this is late, but this is bugging the CRAP out of me.

Code:
94000130 FFFB0000
D3000000 0A00011C
D5000000 00000000
C0000000 0000000C
D8000000 00000000 // How many times will this execute?
D2000000 00000000

I'm hoping for 12.

Author:  Parasyte [ Tue Jun 23, 2009 6:54 pm ]
Post subject:  Re: NDS AR Code Type Information

Ideally: 16.
Typically: 12.


To explain where I get 16:

The loop command requires at least three lines:
  • Initializer (C0 line)
  • Payload (Write code, for example)
  • Terminator (D0, D1, or D2 line)

Thus, to make efficient use of a loop, your "uncompressed" payload must be four lines or longer, at the very least, to see any true benefit (in the form of compression). With another trick, use a zero-based decrementer. (Every bit is worth it.)

Such that you would end up with a 4-based decrementer, where a 'loop count' of 0 automagically loops 4 times; 1 loops 5 times, etc. Thus, a value of C (12) ideally represents a total loop count of 16.

Unfortunately, Action Replay was designed by commercial-driven idiots. C'est la vie.

Author:  kenobi [ Tue Jun 23, 2009 10:18 pm ]
Post subject:  Re: NDS AR Code Type Information

Actually a value of 0 in the C0 code will execute the code(s) within the loop once.
So setting the C0 code repeat value to 0x0000000C (12) will execute the code(s) 13 times.

So if you want the code(s) within the loop to be executed 12 times, you must set the C0 repeat value to 0x0000000B (11=numbers of times you want the code to be executed minus 1).

Author:  Hextator [ Wed Jun 24, 2009 11:37 am ]
Post subject: 

That's what I thought.

I couldn't remember, though, so I had to ask.

EnHacklopedia should be updated to reflect that information.

Author:  Parasyte [ Wed Jun 24, 2009 5:06 pm ]
Post subject:  Re: NDS AR Code Type Information

I concur; although EnHackopedia should be updated with a great deal of information. If interested, you know where to reach me...

Author:  HyperHacker [ Thu Jun 25, 2009 5:20 pm ]
Post subject:  Re: NDS AR Code Type Information

Why exactly isn't Enhacklopedia a wiki?

Author:  Parasyte [ Thu Jun 25, 2009 10:47 pm ]
Post subject:  Re: NDS AR Code Type Information

It is.

Author:  HyperHacker [ Fri Jun 26, 2009 4:24 pm ]
Post subject:  Re: NDS AR Code Type Information

Good answer.

Page 6 of 6 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/