NefMoto

Technical => Reverse Engineering => Topic started by: masterj on November 25, 2014, 01:11:00 PM



Title: Jump hack
Post by: masterj on November 25, 2014, 01:11:00 PM
Hi guys!
Now I have this jump:
Code:
jnb     word_FD30.12, loc_854B54
Code:
9A 18 08 C0 XX XX XX XX
where XX XX XX XX is executed when word_FD30.12 = 1


How could I force skip jump entirely and go to XX XX XX XX?
I'm thinking maybe:
Code:
CC 00 CC 00 XX XX XX XX

Am I right?


Title: Re: Jump hack
Post by: dream3R on November 25, 2014, 03:54:55 PM
Other way round if I remember.   Jump if bit not set.





Title: Re: Jump hack
Post by: masterj on November 25, 2014, 03:59:40 PM
Other way round if I remember.   Jump if bit not set.





Jump if bit is not set, but skip to XX XX XX XX if it is set


Title: Re: Jump hack
Post by: phila_dot on November 25, 2014, 05:53:40 PM
Yes, NOP or unconditional jump one word.