To decrement the Life Display Counter change B6A8E8
xx
to B6A8E8
CE
.
•
This instruction is called when a life balloon is collected,100bannas is collected,baddie hit counter etc,so changing this to decrement(CE) will also cuase the counter to decrement when those events occure.
Instructions that read values from RAM
Instruction:
•
$B6/A83B AD 75 05 LDA $0575 [$B5:0575] A:33C0 X:0006 Y:849A P:envmxdIzc (Occurs when a new area is loaded.)
•
$B8/9314 BD 6F 05 LDA $056F,x[$80:0575] A:0000 X:0006 Y:0000 P:eNvMxdIzc(Occurs when a new game is created.)
B882B7
2 bytes
ASM
Defult Number of Lives Routine
Instruction:
•
B882B7 A2 05 00 LDX #$0005
•
B882BA AD 6B 05 LDA $056B
•
$B882BD 29 04 00 AND #$0004
•
B882C0 F0 03 BEQ $03
•
B882C2 A2 32 00 LDX #$0032
•
B882C5 8E 75 05 STX $0575
•
B882C8 8E 77 05 STX $0577
Notes:
•
To set the default number of lives change B882B8
xx xx
•
LDX #$0005 specifies the number of lives, STX $0575 stores the lives in the life counter, STX $0577 stores the number of lives in the display counter.
change --> $B8/829B A9 01 00 LDA #$0001 to the defualt you want
•
change --> $B8/82A1 9C 7B 05 STZ $057B [$80:057B] from STZ to LDA. Note the RAM value at $056F will also change. Unkown glitches may occure.
Instructions that write values to RAM
Instruction:
•
7E057B $B8/82A1 9C 7B 05 STZ $057B [$80:057B] A:0001 X:FFFF Y:0000 P:envmxdIzc (occurs when a new game loads.)
A362 & A36A
2 bytes
ASM
Reset Counter at X # of bananas
Notes:
•
Defualt value of A362xx is 63(99 in Dec). Size os 1byte(FF)
•
$00/A361 C9 64 CMP #$64
•
Defualt value of A36Axx is 64(100 in Dec).
•
$00/A36A E9 64 SBC #$64.
•
First address compares the banana counter to a pre-determined number. The second address subtracts a pre-determined number from the counter to reset it to zero.
•
Example. If you set A362xx to A36202 then you need to also change A36Axx to the same value+1 (A36A03). Collecting 3 bananas will then give you an extra life..
•
Also A36Axx can be used to set the 'defualt' value of the banana counter after it resets. Example. To set a defualt value of 5 when the counter resets with 10bananas being the reset point, change A362xx to A3620A and A36Axx to A36A06 (1+the value you want).
---
---
---
Category
Baddie Hit Counter
B6A84F
2 bytes
ASM
Increment Life Counter When Baddies Are Hit
Action:
•
Increments the life counter when a certain number of baddies are hit.
Instruction:
•
B6A84F EE 75 05 INC $0575
Notes:
•
To decrement the Life Counter change the value at address B6A84F
xx
to B6A8
4F
.
BFFA6C
2 bytes
ASM
Baddie Hit Counter Routine
Instruction:
•
BFFA6C AD 17 1E LDA $1E17 [$BB:1E17] A:3BB6 X:0004 Y:9B1E P:envmXdIzc
To decrement the Life Display Counter change the value at address B6A8E8
xx
to B6A8E8
CE
. This instruction is also called when a life balloon is collected,100bannas collected, etc, so changing this to decrement the counter will also cuase the counter to decrement when those events occure.