2004-12-14 11:51 PM
2004-12-02 03:50 AM
I have defined res_sub as a word i.e.
.res_sub DS.W 1 My code is as follows:- ld A,{sub_a+1} ; get number A' LSB sub A,{sub_b+1} ; sub number B' LSB ld {res_sub+1},A ; store LSB ld A,sub_a ; get number A' MSB sbc A,sub_b ; sub number B' MSB with LSB's carry ld res_sub,A ; store MSB ret ; and go back to main program Before I run the code Quickwatch shows res_sub as being a word i.e. res_sub 0xffff once I have been through this subtract routine Quickwatch shows res_sub as a single byte. How do I display res_sub as a double byte in my Quickwatch view Re Brian2004-12-14 11:51 PM
My first question is which version of stvd7 do you use, 3.1.1 or previous ?
Your symptoms look like a problem with debug information. If you use an old version (2.5.4 and before) or if your project is build around your own makefile, please check the way you build it. If you use stvd7 3.0.0, please update to the latest version. If your project was created with stvd7 3.0.0, please open the project settings, activate the ''ST7 Post Link'' tab, then click on OK. Then rebuild your application. The problem should have disappeared. Emmanuel.