cancel
Showing results for 
Search instead for 
Did you mean: 

Quick watch and Words

brian4
Associate II
Posted on December 15, 2004 at 08:51

Quick watch and Words

2 REPLIES 2
brian4
Associate II
Posted on December 02, 2004 at 12:50

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 Brian

emmanuel23
Associate II
Posted on December 15, 2004 at 08:51

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.