We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello all, I am using a float variable named val which has a value 169.0 in my program .When I ran the program I got the following assembly code in my disassembly window.Now I want to know the memory location at which the value 169.0 has been stored.Is it possible to know it from the code below? Looking for your help.
49: val=169.0; 0x000002B8 E59F1024 LDR R1,[PC,#0x0024] 0x000002BC E28D0000 ADD R0,R13,#0x00000000 0x000002C0 E5801000 STR R1,[R0]
"I couldnot see the variable getting stored in the nearby location in and around 9 words." Assuming CARM and 32-bit floats, at location 0x000002DC, you should see a word encoded with the value 169.0 encoded thusly: http://www.keil.com/support/man/docs/ca/ca_ap_float_format.htm It's just a raw value in memory that is read by the PC-relative load in your original post, not an instruction.