[NES] Nuts & Milk [FB7J]

Started by ZiT, June 17, 2010, 09:33:17 AM

Previous topic - Next topic

ZiT

FB7J

Nuts & Milk

Infinite Lives
00546422 00000009

Invincible
00546457 00000000

Moon Jump
282A7D72 FEFF0100
02546450 00000104
E0000000 80008000

Speed Up
282A7D72 FFFB0004
82000000 80546B23
86000000 00000004
84000000 80546B23
E0000000 80008000
282A7D72 FFF70008
82000000 80546B23
86000000 FFFFFFFC
84000000 80546B23
E0000000 80008000

daijoda

Thanks. Just a small note, that Infinite Lives code changes only the value on screen, not the actual number of lives. I took the liberty of editing it to an address that would actually affect lives:

Infinite Lives (edited)
005464BE 00000009

I also fixed the Classic Controller button activators for the following codes:

Moon Jump ("a" button)
282A7DD2 FFEF0010
02546450 00000104
E0000000 80008000

Speed Up (included up and down directions)
282A7DD2 7FFF8000
82000000 80546B23
86000000 00000004
84000000 80546B23
E0000000 80008000
282A7DD2 FFFD0002
82000000 80546B23
86000000 FFFFFFFC
84000000 80546B23
E0000000 80008000
282A7DD2 FFFE0001
82000000 80546B20
86000000 FFFFFFFC
84000000 80546B20
E0000000 80008000
282A7DD2 BFFF4000
82000000 80546B20
86000000 00000004
84000000 80546B20
E0000000 80008000

Nuts (?) Door Open (L,R)
282A7DD2 00002200
82000001 8054642C
84000001 805464E4
E0000000 80008000

Enemies Disappear (ZL,ZR)
282A7DD2 00000084
08546464 00000001
20020008 00000000
005464AC 00000002
E0000000 80008000

dcx2

Hi, I just wanted to give some advice on helping write shorter codes.

Your Speed Up code can be shortened significantly.  Move the 82 code in front of the ifs, and the 84 code after the terminator.  Also, you can add one end-if to an if code by adding 1 to the address (notice the 3 at the end of the activator address)

Speed Up (included up and down directions)
82000000 80546B23
282A7DD2 7FFF8000
86000000 00000004
282A7DD3 FFFD0002
86000000 FFFFFFFC
282A7DD3 FFFE0001
86000000 FFFFFFFC
282A7DD3 BFFF4000
86000000 00000004
E0000000 80008000
84000000 80546B23

daijoda

Changing the order of lines results in less repetition... Nice!