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

    • Bridge Constructor Studio v1.0.65 +3 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: Bridge Constructor Studio By Headup GmbH
      Bundle ID: com.headupgames.bridgeconstructorstudio
      App Store Link: https://apps.apple.com/us/app/bridge-constructor-studio/id6745402280?uo=4

       
       

      🤩 Hack Features

      - Freeze Bridge
      - No Build Costs
      -- Full Game Unlocked (will show as locked)
      • 0 replies
    • Bridge Constructor Studio v1.0.65 +3 Cheats [ Unlocked ]
      Modded/Hacked App: Bridge Constructor Studio By Headup GmbH
      Bundle ID: com.headupgames.bridgeconstructorstudio
      App Store Link: https://apps.apple.com/us/app/bridge-constructor-studio/id6745402280?uo=4

       
       

      🤩 Hack Features

      - Freeze Bridge
      - No Build Costs
      -- Full Game Unlocked (will show as locked)
      • 0 replies
    • SWAT: Squad Tactics v0.8.6 [+3 Cheats]
      Modded/Hacked App: SWAT: Squad Tactics By MAD PIXEL GAMES LTD
      Bundle ID: hero.shooter.alpha.game
      iTunes Store Link: https://apps.apple.com/us/app/swat-squad-tactics/id6670252311?uo=4


      🤩 Hack Features

      - Unlimited Skipits Ticket
      - Unlimited Currency (Enable before stage and finish stage)
      - Unlimited Blueprints (Enable before stage and finish stage)
      • 5 replies
    • SWAT: Squad Tactics v0.8.6 [+3 Jailed Cheats]
      Modded/Hacked App: SWAT: Squad Tactics By MAD PIXEL GAMES LTD
      Bundle ID: hero.shooter.alpha.game
      iTunes Store Link: https://apps.apple.com/us/app/swat-squad-tactics/id6670252311?uo=4



      🤩 Hack Features

      - Unlimited Skipits Ticket
      - Unlimited Currency (Enable before stage and finish stage)
      - Unlimited Blueprints (Enable before stage and finish stage)
      • 4 replies
    • Pal Go: Tower Defense TD v0.3.91 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 57 replies
    • Pal Go: Tower Defense TD v0.3.91 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 82 replies
    • Stand & Fight: Backpack Battle v0.9.5 Debug Menu [+10 Jailed Cheats]
      Modded/Hacked App: Stand & Fight: Backpack Battle By VERARIUM COM SERVICOS LDA ZFM
      Bundle ID: com.V.StandAndFight
      App Store Link: https://apps.apple.com/us/app/stand-fight-backpack-battle/id6740915182?uo=4



      🤩 Hack Features

      - Debug Menu

       
      • 12 replies
    • Stand & Fight: Backpack Battle v0.9.5 Debug Menu [+10 Cheats]
      Modded/Hacked App: Stand & Fight: Backpack Battle By VERARIUM COM SERVICOS LDA ZFM
      Bundle ID: com.V.StandAndFight
      App Store Link: https://apps.apple.com/us/app/stand-fight-backpack-battle/id6740915182?uo=4



      🤩 Hack Features

      - Debug Menu
      • 11 replies
    • Rupture: Immortal Slasher v0.15.6 [+3 Cheats]
      Modded/Hacked App: Rupture: Immortal Slasher By ALEKSEI KLIMOV
      Bundle ID: com.GOLEM.Immortal
      iTunes Store Link: https://apps.apple.com/us/app/rupture-immortal-slasher/id6738378630?uo=4

       

      🤩 Hack Features

      - God Mode/Never Die
      - Unlimited Currency (Add 50k every time you spend)
      - Always Can Upgrade Equipments

       
      • 12 replies
    • Rupture: Immortal Slasher v0.15.6 [+3 Jailed Cheats]
      Modded/Hacked App: Rupture: Immortal Slasher By ALEKSEI KLIMOV
      Bundle ID: com.GOLEM.Immortal
      iTunes Store Link: https://apps.apple.com/us/app/rupture-immortal-slasher/id6738378630?uo=4

       

      🚀 Hack Features

      - God Mode/Never Die
      - Unlimited Currency (Add 50k every time you spend)
      - Always Can Upgrade Equipments


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 25 replies
    • Night Valley - Tower Defense v1.0.15 [+2 Jailed Cheats]
      Modded/Hacked App: Night Valley - Tower Defense By Pitaya Group, Inc, The
      Bundle ID: com.pitaya.natv
      App Store Link: https://apps.apple.com/us/app/night-valley-tower-defense/id6467846624?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
      • 7 replies
    • Night Valley - Tower Defense v1.0.15 [+2 Cheats]
      Modded/Hacked App: Night Valley - Tower Defense By Pitaya Group, Inc, The
      Bundle ID: com.pitaya.natv
      App Store Link: https://apps.apple.com/us/app/night-valley-tower-defense/id6467846624?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
       
      • 5 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