Joined: 11/26/2005
Posts: 285
When I look at the memory viewer I see this:
000x: 90 21 CE 9C 06 00 D0 00 00 00 00 00 90 1E 00 00
But when I enter 000 in the memory watch I get that the value of 000 is 144. I don't understand.
Post subject: Re: Memory
Editor, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Different numeric bases. Decimal 144 is 90 in hexadecimal. The actual value is identical, just the way they're expressed (in a way, the language they're expressed) in is different. Click the links to study.
Joined: 11/26/2005
Posts: 285
Sorry for not being clear. My question is: There are several numbers on the row. Which of them are being picked? Base 10 144=Base 16 90. Is the average number on the row hexadecimal 90? Or what?
Editor, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Swedishmartin wrote:
Sorry for not being clear. My question is: There are several numbers on the row. Which of them are being picked? Base 10 144=Base 16 90. Is the average number on the row hexadecimal 90? Or what?
Huh? According to your quote, At address 0000 you have 90 At address 0001 you have 21 At address 0002 you have CE At address 0003 you have 9C At address 0004 you have 06 At address 0005 you have 00 At address 0006 you have D0 At address 0007 you have 00 At address 0008 you have 00 At address 0009 you have 00 At address 000A you have 00 At address 000B you have 00 At address 000C you have 90 At address 000D you have 1E At address 000E you have 00 At address 000F you have 00 You entered 000 in the memory watch, and you got 90 (144 in decimal). Which part you don't understand?
Player (84)
Joined: 2/10/2006
Posts: 113
Location: US
The debugger memory viewer is default in hexadecimal. The memory watch is default in decimal. If you want to watch in hexadecimial, you could enter "x000" as the memory address. (the prefix "x" tells it to display the value in hexidecimal)
Use the force
Active player (410)
Joined: 3/16/2004
Posts: 2623
Location: America, Québec
I think it should be in hexadecimal.
Joined: 11/26/2005
Posts: 285
Bisqwit wrote:
At address 0001 you have 21 At address 0002 you have CE At address 0003 you have 9C At address 0004 you have 06 At address 0005 you have 00 At address 0006 you have D0 At address 0007 you have 00 At address 0008 you have 00 At address 0009 you have 00 At address 000A you have 00 At address 000B you have 00 At address 000C you have 90 At address 000D you have 1E At address 000E you have 00 At address 000F you have 00
Oh, now I understand! Thank you!
JXQ
Experienced player (750)
Joined: 5/6/2005
Posts: 3132
Phil wrote:
I think it should be in hexadecimal.
I actually prefer decimal...it's one less calculation for my brain to do :)
<Swordless> Go hug a tree, you vegetarian (I bet you really are one)