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.
When I write the following in uVision,
mov A, -2000
I want A to contain 0x30, as -2000 is 0xF830. Instead it contains 0x05. Is there any predefined macro to be able to treat a literal as sixteen bits and extract the lower (or upper) eight bits out of it?
Thanks.
More of an expression than a macro. It's in the manual.
HIGH and LOW, IIRC.