Created
January 16, 2022 23:18
-
-
Save fujidig/a4b0356b8c1dfa50e6e668d22b15061d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
event.onmemoryexecute(function () | |
if memory.read_u8(0x4d06) == 0x32 then | |
local de = emu.getregister("D") * 256 + emu.getregister("E") | |
local hl = emu.getregister("H") * 256 + emu.getregister("L") | |
local a = emu.getregister("A") | |
print(string.format("%d-th pokemon poison addr=%04x (%02x -> %02x)", de - 0xd124 + 1, hl, memory.read_u8(hl), a)) | |
end | |
end, 0x4D06) | |
event.onmemoryexecute(function () | |
if memory.read_u8(0x4D47) == 0x21 then | |
local de = emu.getregister("D") * 256 + emu.getregister("E") | |
print(string.format("damage loop end num=%d", de - 0xd124)) | |
end | |
end, 0x4D47) | |
while true do | |
emu.frameadvance() | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11-th pokemon poison addr=d2e5 (0a -> 09) | |
25-th pokemon poison addr=d54d (01 -> 00) | |
92-th pokemon poison addr=e0d1 (80 -> 7f) | |
110-th pokemon poison addr=e3e9 (3b -> 3a) | |
111-th pokemon poison addr=e415 (3b -> 3a) | |
112-th pokemon poison addr=e441 (07 -> 06) | |
117-th pokemon poison addr=e51d (2c -> 2b) | |
118-th pokemon poison addr=e549 (2c -> 2b) | |
119-th pokemon poison addr=e575 (2b -> 2a) | |
122-th pokemon poison addr=e5f9 (07 -> 06) | |
124-th pokemon poison addr=e651 (17 -> 16) | |
125-th pokemon poison addr=e67d (1a -> 19) | |
130-th pokemon poison addr=e759 (0b -> 0a) | |
131-th pokemon poison addr=e785 (0b -> 0a) | |
133-th pokemon poison addr=e7dd (0b -> 0a) | |
134-th pokemon poison addr=e809 (0b -> 0a) | |
135-th pokemon poison addr=e835 (0b -> 0a) | |
136-th pokemon poison addr=e861 (0b -> 0a) | |
137-th pokemon poison addr=e88d (0b -> 0a) | |
138-th pokemon poison addr=e8b9 (0b -> 0a) | |
139-th pokemon poison addr=e8e5 (0b -> 0a) | |
140-th pokemon poison addr=e911 (0b -> 0a) | |
141-th pokemon poison addr=e93d (0b -> 0a) | |
142-th pokemon poison addr=e969 (0b -> 0a) | |
143-th pokemon poison addr=e995 (0b -> 0a) | |
144-th pokemon poison addr=e9c1 (0b -> 0a) | |
145-th pokemon poison addr=e9ed (0b -> 0a) | |
146-th pokemon poison addr=ea19 (0b -> 0a) | |
147-th pokemon poison addr=ea45 (0b -> 0a) | |
148-th pokemon poison addr=ea71 (0b -> 0a) | |
149-th pokemon poison addr=ea9d (0b -> 0a) | |
150-th pokemon poison addr=eac9 (0b -> 0a) | |
151-th pokemon poison addr=eaf5 (0b -> 0a) | |
152-th pokemon poison addr=eb21 (0b -> 0a) | |
153-th pokemon poison addr=eb4d (0b -> 0a) | |
154-th pokemon poison addr=eb79 (0b -> 0a) | |
155-th pokemon poison addr=eba5 (0b -> 0a) | |
156-th pokemon poison addr=ebd1 (0b -> 0a) | |
167-th pokemon poison addr=edb5 (25 -> 24) | |
168-th pokemon poison addr=ede1 (31 -> 30) | |
169-th pokemon poison addr=ee0d (4f -> 4e) | |
172-th pokemon poison addr=ee91 (7f -> 7e) | |
173-th pokemon poison addr=eebd (7f -> 7e) | |
180-th pokemon poison addr=eff1 (93 -> 92) | |
184-th pokemon poison addr=f0a1 (5b -> 5a) | |
198-th pokemon poison addr=f309 (9e -> 9d) | |
199-th pokemon poison addr=f335 (27 -> 26) | |
206-th pokemon poison addr=f469 (d3 -> d2) | |
262-th pokemon poison addr=fe09 (50 -> 4f) | |
263-th pokemon poison addr=fe35 (00 -> fe) | |
266-th pokemon poison addr=feb9 (bb -> fe) | |
267-th pokemon poison addr=fee5 (ee -> ed) | |
268-th pokemon poison addr=ff11 (bf -> be) | |
269-th pokemon poison addr=ff3d (ff -> fe) | |
277-th pokemon poison addr=009d (04 -> 03) | |
279-th pokemon poison addr=00f5 (38 -> 37) | |
280-th pokemon poison addr=0121 (dd -> dc) | |
283-th pokemon poison addr=01a5 (ce -> cd) | |
286-th pokemon poison addr=0229 (ff -> fe) | |
288-th pokemon poison addr=0281 (55 -> 54) | |
291-th pokemon poison addr=0305 (e0 -> df) | |
292-th pokemon poison addr=0331 (7d -> 7c) | |
293-th pokemon poison addr=035d (cd -> cc) | |
296-th pokemon poison addr=03e1 (e5 -> e4) | |
297-th pokemon poison addr=040d (e1 -> e0) | |
298-th pokemon poison addr=0439 (88 -> 87) | |
302-th pokemon poison addr=04e9 (05 -> 04) | |
304-th pokemon poison addr=0541 (a8 -> a7) | |
310-th pokemon poison addr=0649 (2a -> 29) | |
311-th pokemon poison addr=0675 (3d -> 3c) | |
312-th pokemon poison addr=06a1 (e9 -> e8) | |
317-th pokemon poison addr=077d (cb -> ca) | |
321-th pokemon poison addr=082d (fa -> f9) | |
322-th pokemon poison addr=0859 (d1 -> d0) | |
323-th pokemon poison addr=0885 (e0 -> df) | |
324-th pokemon poison addr=08b1 (f9 -> f8) | |
325-th pokemon poison addr=08dd (2c -> 2b) | |
326-th pokemon poison addr=0909 (6f -> 6e) | |
327-th pokemon poison addr=0935 (2c -> 2b) | |
328-th pokemon poison addr=0961 (3c -> 3b) | |
329-th pokemon poison addr=098d (0f -> 0e) | |
332-th pokemon poison addr=0a11 (21 -> 20) | |
333-th pokemon poison addr=0a3d (07 -> 06) | |
334-th pokemon poison addr=0a69 (ea -> e9) | |
340-th pokemon poison addr=0b71 (21 -> 20) | |
343-th pokemon poison addr=0bf5 (7e -> 7d) | |
345-th pokemon poison addr=0c4d (0c -> 0b) | |
346-th pokemon poison addr=0c79 (0f -> 0e) | |
347-th pokemon poison addr=0ca5 (fe -> fd) | |
349-th pokemon poison addr=0cfd (0d -> 0c) | |
352-th pokemon poison addr=0d81 (e0 -> df) | |
354-th pokemon poison addr=0dd9 (b1 -> b0) | |
355-th pokemon poison addr=0e05 (f6 -> f5) | |
358-th pokemon poison addr=0e89 (78 -> 77) | |
359-th pokemon poison addr=0eb5 (e0 -> df) | |
360-th pokemon poison addr=0ee1 (06 -> 05) | |
361-th pokemon poison addr=0f0d (d1 -> d0) | |
363-th pokemon poison addr=0f65 (2c -> 2b) | |
366-th pokemon poison addr=0fe9 (3e -> 3d) | |
368-th pokemon poison addr=1041 (11 -> 10) | |
370-th pokemon poison addr=1099 (d0 -> cf) | |
371-th pokemon poison addr=10c5 (d0 -> cf) | |
373-th pokemon poison addr=111d (cb -> ca) | |
374-th pokemon poison addr=1149 (c9 -> c8) | |
375-th pokemon poison addr=1175 (0f -> 0e) | |
378-th pokemon poison addr=11f9 (d0 -> cf) | |
379-th pokemon poison addr=1225 (18 -> 17) | |
381-th pokemon poison addr=127d (d5 -> d4) | |
382-th pokemon poison addr=12a9 (5f -> 5e) | |
384-th pokemon poison addr=1301 (85 -> 84) | |
385-th pokemon poison addr=132d (0e -> 0d) | |
386-th pokemon poison addr=1359 (d0 -> cf) | |
damage loop end num=386 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment