How to display hex & binary values in Locals view

Go To Last Post
44 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You know, it is really disconcerting to do a swap on a uint8 which reads 35 in the Locals view window and have it become 50, only to realize that it is displaying in bloody decimal!

Now, I have looked and looked and looked for a way to change the display format to hex or binary. Just by accident, I discovered that command-click brings up a contextual menu with the option for hex display.

Well, bugger the fact that it changes everything, not just the line you clicked. But, on top of that, there is no option for binary!

So, how can you view binary? Any hope for some lines decimal, some hex, and some binary? Or, will I have more success with a pint of the best local brew?

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The brew, and I will join you, just as soon as I am allowed to do that again. :wink:

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

So, how can you view binary? Any hope for some lines decimal, some hex, and some binary? Or, will I have more success with a pint of the best local brew?

I've added an Improvement request into our internal bugtracker, AVRSV-3637 for further reference

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I thought you just right clicked and said "view as hex" on the context menu - certainly the case in the generic VS2010.

EDIT: yes it's there, see picture...

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, but this is not on a per-line basis

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You sure about that? I just tried it and switching it (actually quite annoyingly) switches the display of everything. I'd actually like it be able to set different interpretations per item myself.

(oh and it appears to be "sticky" from one debug session to the next).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I would go look in the Visual Studio documentation (i.e. somewhere in MSDN from Microsoft). For items in the watch window you can (or at least you could) specify how the item should be displayed by adding a specifier to the item (e.g. the name of the variable was followed by a comma and a character specifying format and stuff). This works in the watch window, so you'd have to add to that window rather than looking in locals.

Not sure if it did binary, though...

I do not have the specific documentation on this handy right now, and I have other stuff in the pipe. Come back if you could not find it and I'll have a go at locating it tonight. (And, IIRC it has even been discussed here at 'freaks before).

And Jim, the hex to binary converter is right on the top of your shoulders.. :wink:

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
You sure about that? I just tried it and switching it (actually quite annoyingly) switches the display of everything. I'd actually like it be able to set different interpretations per item myself.

(oh and it appears to be "sticky" from one debug session to the next).

This is in the watch window i presume? Jim talked about the locals/autos window

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, I had a look. And Atmel seems to have screwed this up..

1) The documentation on how to do this in Visual Studio is e.g. here: http://msdn.microsoft.com/en-us/...

2) Trying out a uint8_t variable b in Atmel Studio 6 (1863), and trying to display it as "b,x" in Atmel Studio you get this info about what is being watched: "unsigned long" and the value displayed (always zero?) does not reflect the value of the variable. Specifying ",o" for octal seems to work though (almost as good as hex - just as easy to convert to binary in your carbon-based converter).

HTH!

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

This is in the watch window i presume? Jim talked about the locals/autos window

You are telling me the different windows that dio the same operate differently?

EDIT: no you are wrong. The locals window operates exactly the same was the watch window and what's more the same "Hexadecimal display" option applies to both and is sticky.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Quote:

This is in the watch window i presume? Jim talked about the locals/autos window

You are telling me the different windows that dio the same operate differently?

EDIT: no you are wrong. The locals window operates exactly the same was the watch window and what's more the same "Hexadecimal display" option applies to both and is sticky.

No, they should do the same. When I change to hex display, all variables are shown in hex. As I read the question, Jim wanted to change this on a per-line basis

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Morten,

Have you seen this thread?

https://www.avrfreaks.net/index.p...

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:
OK, I had a look. And Atmel seems to have screwed this up..

Specifying ",o" for octal seems to work though (almost as good as hex - just as easy to convert to binary in your carbon-based converter).

HTH!


Specifying ,b displays in binary, at least it does on my Win7 machine. :wink:

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Windows version sould not have anything to do with this. I tried a few different format specifiers and you can see the result below. I also attached a screen shot of what it looks like when you use the context menu to shift to hexadecimal.

Results:
- The hex format specifier does not work
- The binary format specifier does not work
- The octal format specifier works
- The "Hexadecimal display" alternative in the context menu affects all items but those that have working format specifiers (i.e. octal).

Attachment(s): 

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmm?

Attachment(s): 

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

Last Edited: Sun. Jul 8, 2012 - 05:20 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My Atmel Studio is build 1863. What's yours, Larry?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The same, Johan. It's weird that we are not getting the same results.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you have a small test project/solution, can you attach a ZIP of it here? I have attached mine below..

Attachment(s): 

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

larryvc wrote:
Hi Morten,

Have you seen this thread?

https://www.avrfreaks.net/index.p...

I have read it. I'll look through the threads when I get into office on monday and make some bugzez

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Never having used "Visual Studio" (my visual desktop programming environment is RealBasic), this is totally new to me. So, thanks for the hints. I'll give it a try.

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:
If you have a small test project/solution, can you attach a ZIP of it here? I have attached mine below..

No need. I did get the same result as you with the code you provided. You are using "b" as a variable and it seems to be (pun intended) confusing the format specifier software. Try with a variable name that is not one of the format specifiers and you will see it works. Is this considered a BUG or a Feature?

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Is this considered a BUG or a Feature?

I don't have a Visual Studio (C/C++) installation handy ATM, so I can not check if the same problem occurs there. When I get to one I will check, and if this is specific for Atmel Studio then I will consider it an Atmel Studio bug or deficiency and report it in the tracker.

OT: On the fun side - I got tired of the spell checker marking "Atmel" so I decided to add it to the dictionary. On my way there I observed that the FF spell checker suggest changing "Atmel" to "Oatmeal". :D

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:
OT: On the fun side - I got tired of the spell checker marking "Atmel" so I decided to add it to the dictionary. On my way there I observed that the FF spell checker suggest changing "Atmel" to "Oatmeal". :D

:) My doctor has recommended that for breakfast every day, with a sprinkle of ground flax seed. Oatmeal of course, not Atmel. :wink:

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can't figure out how to add the format specifier to the name. I click, I right-click and command-click. All over the %^^&%(&* Locals window (including the variable name). I can edit value but nowhere to add the specifier.

Enlightenment is desired.

Ugggh, OK, I can add a watch, with the variable name and format specifier. Ugly but works.

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Use the watch window and enter the variable you want to watch, a comma, and the format specifier. The locals window is handled automatically by the debugger and cannot be changed as far as I know.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes - that is what I said initially. It works in the watch window. Not in the locals window, the content of which is auto-generated and not possible to edit in detail by the user.

Ugly? Not IMO. For quick debugging I can rely on e.g. the Locals window, but for any prolonged debugging work I like to set up my own watch's so that I have and see exactly what I need.

Please note that you can add a watch quickly by right-clicking the variable name anywhere in the editor and select "Add watch".

(What really sucks is that you can not re-order what you have in a watch window. That's Microsoft...).

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've added another bug on the errors in the format specifiers

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:
I've added another bug on the errors in the format specifiers

Thank you. :)

Is there an external tracking number for that?

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

larryvc wrote:
meolsen wrote:
I've added another bug on the errors in the format specifiers

Thank you. :)

Is there an external tracking number for that?

No, but I can carve out the internal one if someone wants it. I've commented that it may be wise to give a hint in this thread with the resolution, but this at best a "should" (not all devs have the balls to talk to you freaks :) )

EDIT: If you want to make a bug in the external system, then to that by all means, and just PM me with the link and I'll link it up with our internal one

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I would, but I am not sure what specific bugs you covered in your internal report. Can you PM me with that.

Quote:
not all devs have the...

Call them chicken, it got Marty McFly all fired up. :lol:

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I would, but I am not sure what specific bugs you covered in your internal report. Can you PM me with that.

Done

Quote:

Quote:
not all devs have the...

Call them chicken, it got Marty McFly all fired up.


:D

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Quote:

I would, but I am not sure what specific bugs you covered in your internal report. Can you PM me with that.

Done


I'll take the error report off my to-do list then?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes Johan, I am following up on that now. I will post the trace numbers as soon as I finish.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bugs 2562 and 2563 are now reported. Morten if you want to add tags to match your inside reports please do.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As a matter of sane user interface, I would like to suggest that a click (right click or command click) in the heading of the value column produce a contextual menu that applies to the whole column. But, a click in any individual value produce a menu that includes a value change and format selection for that particular value.

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Johan, have you tried using h instead of x to specify hexadecimal?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Johan, have you tried using h instead of x to specify hexadecimal?

No, because looking at Microsofts documentation that does not make sense. There it says that 'h' is a
Quote:
long or short prefix for: d, i, u, o, x, X

(my emphasis)

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

JohanEkdahl wrote:
Quote:

Johan, have you tried using h instead of x to specify hexadecimal?

No, because looking at Microsofts documentation that does not make sense. There it says that 'h' is a
Quote:
long or short prefix for: d, i, u, o, x, X

(my emphasis)

Yes, but, then there is this: :wink:

http://msdn.microsoft.com/en-us/...

It seems to be left up to who writes the visualizer.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here's an excerpt from the "official" Atmel help available on the help menu. Look it up in the help to get the nice formatting :)

Help Viewer Home
* Atmel Studio User Guide
* * Debugging
* * * QuickWatch,Watch, Locals...
* * * * Expression formatting

Last Edited: Wed. Jul 11, 2012 - 08:46 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I gave it a quick try in AS6 and this is what I get on a UC3 simulator project:

int main(void)
{
  volatile int a=0;
  volatile unsigned char b=0;
  while(1)
  {
    a++;
    b++;
  }
}

Here's my watch view:

		a	3	int{registers}@R08
		a,x	0x00000003	int{registers}@R08
		b	2	unsigned char@0x3ffb ([R13]+3)
		b,x	0x02	unsigned char@0x3ffb ([R13]+3)
		b,b	2	unsigned long
		b,b1	0b00000010	unsigned char@0x3ffb ([R13]+3)
		a,b	2	unsigned long
		a,b1	0b00000011	int{registers}@R08
		a,o	000000000003	int{registers}@R08

So the modifiers seem to work with the exception of "comma b", where I had to force a size (b1) to get it to work. Will check why now...

Dan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Here's an excerpt from the "official" Atmel help available on the help menu. Look it up in the help to get the nice formatting

Help Viewer Home
* Atmel Studio User Guide
* * Debugging
* * * QuickWatch,Watch, Locals...
* * * * Expression formatting


http://www.atmel.no/webdoc/atmel...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Mistery solved:

If the expression after comma is a symbol, it will be treated as a formatting string only if it doesn't evaluate as a variable. In the latter case, comma behaves as the regular C comma operator.

We should probably change this to avoid the current confusion when people have local variables named "o", "x" or "b".

dan

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

danv wrote:
Mistery solved:

If the expression after comma is a symbol, it will be treated as a formatting string only if it doesn't evaluate as a variable. In the latter case, comma behaves as the regular C comma operator.

We should probably change this to avoid the current confusion when people have local variables named "o", "x" or "b".

dan


Yes dan, I solved that in this post above. :wink:

https://www.avrfreaks.net/index.p...

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hehe, I guess this was a feature that turned out to be a bug. For reference, I've removed the feature (or bug) from the future release of Studio :)