Jump to content

How to write an 8 byte MOV instruction


133 posts in this topic

Recommended Posts

Posted

Have you ever had the issue of needing to move something bigger than 65535 into R0, and you needed to use a literal number (MOV R0, #255) instead of a register (MOV R0, R7)? Well I did to make a custom floating point return value to separate the field of view function for Bullet Force so I would still be able to get the zoomed in field of view when I aim down sights.

 

This is a very good when you want to move a floating point value into R0, like 1120403456. Additionally, I'll use 1120403456 for this tutorial.

 

Hidden Content

    Step 1:

    Convert your number to hexadecimal. Go to http://www.binaryhexconverter.com/decimal-to-hex-converter.

     

    1120403456 is 42C80000 in hexadecimal. Cool.

     

    Step 2:

    Break your hexadecimal value in half, and that will leave you with two "sections". For 42C80000:

     

    The first section would be 0000.

    The second section would be 42C8.

     

    Step 3

    Use ARM Converter (http://armconverter.com) to generate the instructions we need. They will always be in this format:

     

    MOVW R0, #/*section 1*/
    MOVT R0, #/*section 2*/

    In my case, my instructions would be:

     

    MOVW R0, #0x0000
    MOVT R0, #0x42C8

    Convert those two instructions, and write the hex down somewhere.

     

    Step 4:

    Time to make the hex string!

     

    I used ARM Converter to convert these and it gave me these hexes:

     

    MOVW R0, #0x0000 = 40F20000

    MOVT R0, #0x42C8 = C4F2C820

     

    Combine the two, and the final hex of MOV R0, #0x42C80000 is:

    40F20000C4F2C820

    Keep in mind this is 8 bytes, so you'll need to find 4 bytes of extra space before the instruction you are overwriting is.

  • Replies 132
  • Created
  • Last Reply

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Lands of Jail v1.0.7 [+1 Jailed Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)

      • 1 reply
    • Lands of Jail v1.0.7 [+1 Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)
       
      • 3 replies
    • Obsidian Knight RPG v1.97 [+3 Jailed Cheats]
      Modded/Hacked App: Obsidian Knight RPG By ActFirst Games AB
      Bundle ID: com.actfirstgames.obsidianknight
      iTunes Store Link: https://apps.apple.com/us/app/obsidian-knight-rpg/id6505061490?uo=4



      🚀 Hack Features

      - Unlimited Currency
      - God Mode / Never Die
      - High Damage / OHK
      • 16 replies
    • Obsidian Knight RPG v1.97 [+3 Cheats]
      Modded/Hacked App: Obsidian Knight RPG By ActFirst Games AB
      Bundle ID: com.actfirstgames.obsidianknight
      iTunes Store Link: https://apps.apple.com/us/app/obsidian-knight-rpg/id6505061490?uo=4

       

      🚀 Hack Features

      - Unlimited Currency
      - God Mode / Never Die
      - High Damage / OHK
      • 19 replies
    • Z Survivor: Backpack Shooter v0.59 [+2 Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
      • 5 replies
    • Z Survivor: Backpack Shooter v0.59 [+2 Jailed Cheats]
      Modded/Hacked App: Z Survivor: Backpack Shooter By Tapped Ltd
      Bundle ID: com.tapped.zsurvivor
      iTunes Store Link: https://apps.apple.com/us/app/z-survivor-backpack-shooter/id6557072922?uo=4



      🤩 Hack Features

      - Debug Menu (Auto Play, Skip Level and more)
      - Never Die
      - Unlimited Resource (Currency, Keys, Blueprints)
      • 4 replies
    • Kingdom Survivors v1.0720 [+4 Cheats]
      Modded/Hacked App: Kingdom Survivors By a plant standing on a chair Game Studio HB
      Bundle ID: com.DefaultCompany.MonsJacobSurvivorGame
      iTunes Store Link: https://apps.apple.com/us/app/kingdom-survivors/id1662497248?uo=4



      🚀 Hack Features

      - Never Die
      - Gain Exp (Toggle On gives you exp in battle)
      - Unlock All Characters
      - Add Currency
      • 16 replies
    • Kingdom Survivors v1.0720 [+4 Jailed Cheats]
      Modded/Hacked App: Kingdom Survivors By a plant standing on a chair Game Studio HB
      Bundle ID: com.DefaultCompany.MonsJacobSurvivorGame
      iTunes Store Link: https://apps.apple.com/us/app/kingdom-survivors/id1662497248?uo=4



      Hack Features:

      - Never Die
      - Gain Exp (Toggle On gives you exp in battle)
      - Unlock All Characters
      - Add Currency

      • 12 replies
    • Dwarf Kingdom - Idle Survival v5.2 Debug Menu [+6 Jailed Cheats]
      Modded/Hacked App: Dwarf Kingdom - Idle Survival By PAPER PIGEON YAZILIM VE OYUN GELISTIRME LIMITED SIRKETI
      Bundle ID: com.PaperPigeon.DwarfKingdom
      iTunes Store Link: https://apps.apple.com/us/app/dwarf-kingdom-idle-survival/id6477745778?uo=4



      🤩 Hack Features

      - Debug Menu (Enable cheat and debug menu will open)
       
      • 4 replies
    • Dwarf Kingdom - Idle Survival v5.2 Debug Menu [+6 Cheats]
      Modded/Hacked App: Dwarf Kingdom - Idle Survival By PAPER PIGEON YAZILIM VE OYUN GELISTIRME LIMITED SIRKETI
      Bundle ID: com.PaperPigeon.DwarfKingdom
      iTunes Store Link: https://apps.apple.com/us/app/dwarf-kingdom-idle-survival/id6477745778?uo=4



      🤩 Hack Features

      - Debug Menu (Enable cheat and debug menu will open)
      • 4 replies
    • Cup Quest - Hero's Journey v1.4 [+3 Cheats]
      Modded/Hacked App: Cup Quest - Hero's Journey By DOGSTER TECHNOLOGIES PRIVATE LIMITED
      Bundle ID: com.felicity.cupquest
      App Store Link: https://apps.apple.com/us/app/cup-quest-heros-journey/id6742395137?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Add Currency
      - Unlock Double Speed
      • 3 replies
    • Cup Quest - Hero's Journey v1.4 [+3 Jailed Cheats]
      Modded/Hacked App: Cup Quest - Hero's Journey By DOGSTER TECHNOLOGIES PRIVATE LIMITED
      Bundle ID: com.felicity.cupquest
      App Store Link: https://apps.apple.com/us/app/cup-quest-heros-journey/id6742395137?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Add Currency
      - Unlock Double Speed
      • 2 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines