I know this is a very simple question but i'd like to know if there was an easy way to calculate rapidly an address by adding memory size to an initial address. For example I saw on forums people advising to "add" 32 Mio to an address.
So if i start at 0x00000000
and want to add 32 Mio :
I convert 32 Mio in 268435456
bits
I divide by the size of the words stored in the addresses ( it depends on the architecture, It's 8 bits per address in the machine i'm working on) : 268435456/8 = 33554432
I convert 33554432
in hex : 0x2000000
So my address would be 0x02000000
. right ?
Okay, it's quite simple ! But does someone knows an online tool to do that ? I could write a little script but i love online tools :)
User contributions licensed under CC BY-SA 3.0