mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-25 08:13:15 +00:00
c9e8d0452d
this technically introduces a memory leak which increases memory usage each time credits are rolled, but it's pretty insignificant imo
36 lines
336 B
Plaintext
36 lines
336 B
Plaintext
offset 40d3e0
|
|
|
|
#define
|
|
size=50
|
|
MAX_STRIP=40
|
|
Strip_addr=0049d628
|
|
#enddefine
|
|
|
|
PUSH EBP
|
|
MOV EBP,ESP
|
|
|
|
PUSH 18
|
|
PUSH 0
|
|
PUSH 0049D610
|
|
CALL 00480D30
|
|
ADD ESP,0C
|
|
|
|
/*
|
|
PUSH 500
|
|
PUSH 0
|
|
PUSH 0049D628
|
|
CALL 00480D30
|
|
ADD ESP,0C
|
|
|
|
PUSH size
|
|
PUSH MAX_STRIP
|
|
CALL 00487701
|
|
ADD ESP,8
|
|
MOV [Strip_addr],EAX
|
|
*/
|
|
XOR EAX,EAX
|
|
MOV [Strip_addr],EAX
|
|
|
|
POP EBP
|
|
RETN
|
|
INT3 |