I have a noob questions about how memory address stores values.
For example,
addr +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F +0123456789ABCDEF
0000 50 61 78 20 69 73 20 61 20 72 65 61 6C 6C 79 20 Pax is a really
0010 63 6F 6F 6C 20 67 75 79 00 cool guy.
Is 0000 an address? Is 50 61 78 20 69 73 20 61 20 72 65 61 6C 6C 79 20 the value stored in 0000 address?
Here 0000 is an address, from the label addr. The only value that is stored at 0000 is 50. Each byte has it's own address:
------+--------
addr | data
------+--------
0000 | 50
0001 | 61
0002 | 78
0003 | 20
0004 | 69
0005 | 73
0006 | 20
0007 | 61
0008 | 20
0009 | 72
000A | 65
000B | 61
000C | 6C
000D | 6C
000E | 79
000F | 20
if you considered for example 0000 as the base address, you can say 20, the last value is stored at F as 0000 + F = 000F, base address + offset from that address.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With