Coding Questions and other Quandaries
#21
So I was looking at your code and was wondering if the part !!!_!!! is a typo?

Celia and enemies have infinite health:

F6000001 80E080FF #Example unique string takes up 1 row/line. Search from 0x80E00000 thru 0x80FF0000
907D0014 38000500 #Example unique string to look for ----------------------> !!!(shouldn’t this be: 907D0014 887D0020)!!!
D2000000 00000002 #Insert ASM at pointer (zero offset); D2 = Codetype for Pointer ASM
386000C8 907D0014 #ASM code (li r3, 0xC8; stw r3, 0x0014 (r29)
60000000 00000000 #End of ASM code
E0000000 80008000 #End if (final terminator)


Here's my take on the changing health address thing:

Only Celia should have infinite health:

28###### 00001000 #Control line activator. Press (-)
F6000001 80E080FF #Example unique string takes up 1 row/line. Search from 0x80E00000 thru 0x80FF0000
907D0014 887D0020 #Example unique string to look for
D2000000 00000004 #Insert ASM at pointer (zero offset); D2 = Codetype for Pointer ASM
39600004 7FAB5838 #ASM code: li r11, 0x4; and r11, r29, r11
2C0B0004 41820000 #ASM code: cmpwi r11, 0x4; beq some_label
386000C8 907D0014 #ASM code: some_label: li r3, 0xC8; stw r3, 0x0014 (r29)
60000000 00000000 #End of ASM code
E0000000 80008000 #End if (final terminator)

Being that Celia’s health address ends with 0x4, possibly this could do the trick.

li r11, 0x4
and r11, r29, r11
cmpwi r11, 0x4
beq some_label
Some_label:
li r3, 0xC8
stw r3, 0x14 (r29)
Reply


Messages In This Thread
RE: Coding Questions and other Quandaries - by Hackwiz - 12-09-2021, 01:58 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)