Skip to content
Guest Big Announcement

Need some help for modding this instruction for one hit kill

Featured Replies

I set my watchpoint, continued the game, and damaged an enemy. The watchpoint hit and GDB gave me an offset with the instruction VSTR S0, [R10, #204]. So logically I thought that I would NOP it to make one hit kill work. But of course I get EXC_BAD_ACCESS. But a NOP would be the only thing that would give me EXC_BAD_ACCESS. Here is what I have tried so far:

 

VSTR S7, [R10, #204]
I only did that because it would make the zombies in Dead Trigger a one hit kill, but in this game, it just made the health infinite.

 

VSTR S18, [R10, #204]
I did that because I saw somewhere that S18=80.0, but enemy heath was still infinite.

 

VMOV S0, R0
I did that because when GDB gave me the address R0 held something like -30. But enemy health was still infinite.

 

VMOV S0, R1
Same logic used with the one above. R1 held -100 or something like that, but it didn't work.

 

MOV R0, #0
VMOV S0, R0
I thought that if I moved 0 into R0 and then moved R0 into S0 enemy health would be zero, but it was still infinite.

 

MOV R0, #0
STR R0, [R10, #204]
Same logic as above, but I did not include S0 at all. Did not work.

 

If anyone can help me with this, it would be greatly appriciated :)

What's the OP Code for VSTR S0 ?

This is a great website to go to http://www.8052.com

What do you mean by OP code?

Like MOV R7, #data has 0x7F

Still not really sure what you mean, the original instruction was VSTR S0, [R10, #204] and there was not anything like VMOV S0, #x

u had to find the highest float value but forgot how :facepalm:

I think I know what you mean. There are different enemies in this game so I'll just get get an offset from the biggest one.

@@shmoo Try this

VSUB S0, S0

I will tomarrow, it seems that that might actually work :D

@KingRalph

 

The arm converter does not support VSUB, so I'm going have to figure out the hex myself. It might take a while, but I'll be sure to get back to you :)

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.