Compare the last 2 bytes of an address in a register
Posted: Sun Feb 25, 2024 11:08 am
Hello everyone, I'm learning a lot through your tutorials and posts but I'm having a hard time doing what maybe is a simple thing.
I'm playing around with Helldivers, the first game specifically and I was looking for a way to filter out the main gun ammo count from the rest of the addresses stored in the register RCX.
By using breakpoints, I realised that, to the specific ammo address in RCX, corresponds an address in RAX where the last 2 bytes are always the same: ????3E78.
Is there a way to check, in ASM, if a specific address in RAX ends with 3E78?
I hope my question makes sense, and I apologise if it was already answered somewhere.
I'm playing around with Helldivers, the first game specifically and I was looking for a way to filter out the main gun ammo count from the rest of the addresses stored in the register RCX.
By using breakpoints, I realised that, to the specific ammo address in RCX, corresponds an address in RAX where the last 2 bytes are always the same: ????3E78.
Is there a way to check, in ASM, if a specific address in RAX ends with 3E78?
I hope my question makes sense, and I apologise if it was already answered somewhere.