cave-story-randomizer/cs-hacks/IncreaseMAX_STRIP/ActionStripper.txt
duncathan c9e8d0452d reduces size of MAX_STRIP to 0x40 instead of 0x7F
this technically introduces a memory leak which increases memory usage each time credits are rolled, but it's pretty insignificant imo
2021-04-01 22:22:34 -06:00

43 lines
539 B
Plaintext

offset 40cf90
#define
count=EBP-4
Strip_addr=0049D628
Credit.mode=49D620
MAX_STRIP=40
size=50
Strip.flag=EAX
Strip.x=EAX+4
Strip.y=EAX+8
Strip.cast=EAX+0C
Strip.str=EAX+10
#enddefine
push ebp
mov ebp, esp
push ecx
mov eax, [Strip_addr]
mov edx, MAX_STRIP
:$LL4@ActionStri
test BYTE [Strip.flag], 80
je :$LN5@ActionStri
cmp [Credit.mode], 0
je :$LN5@ActionStri
sub [Strip.y], 100
:$LN5@ActionStri
cmp [Strip.y], -2000
jg :$LN2@ActionStri
and [Strip.flag], 0
:$LN2@ActionStri
add eax, size
sub edx, 1
jne :$LL4@ActionStri
leave
retn