mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-12-25 14:37:05 +00:00
c9e8d0452d
this technically introduces a memory leak which increases memory usage each time credits are rolled, but it's pretty insignificant imo
43 lines
539 B
Plaintext
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 |