I use assembly language in ccstudio (c2x version 2). My problem with watch window.
Watch window show address of variable instead of value of variable.
Where to i do mistake?
You can see my screen shut in this link. http://img202.imageshack.us/img202/4263/watchwindow.jpg
I add the count vaiable in to watch window and watch window show this
Name: count
Value:0x200
Type: void *
Radix: hex
You see my simple test program.
count .usect mem,1
.global count
.global _c_int0
_c_int0:
ldp #4
loop: lacc count
add #1
sacl count
b loop
end
this is my cmd file
MEMORY {
page 0:
prg :origin = 0x8000, length = 0x800
page 1:
ram :origin = 0x0200, length = 0x080
}
SECTIONS
{
kod : load = prg page 0
mem : > ram
}