388 views|2 replies

3181

Posts

0

Resources
The OP
 

The problem with observed variables [Copy link]

Code

#include<p16f877.inc>

__CONFIG(_CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _XT_OSC & _WRT_OFF & _LVP_OFF& _CPD_OFF);

#define xxx 0x55
y equ 0x70

org 0x0000
goto main
org 0x20
main
movlw xxx>>1
movwf y
movlw xxx<<2
movwf y
movlw 1<<7
movwf y
goto $









END

I want to observe the value of y when running

But when I enter y in the observation window, it disappears after pressing Enter.

What's going on? How can I solve it? Thank you!

This post is from Microchip MCU

Latest reply

This should be the address of the variable to be observed. Can the variable be directly entered in the observation area? Maybe it doesn't look that advanced.   Details Published on 2024-5-8 16:56
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

6064

Posts

4

Resources
2
 

This should be the address of the variable to be observed. Can the variable be directly entered in the observation area? Maybe it doesn't look that advanced.

This post is from Microchip MCU
 
 
 

3181

Posts

0

Resources
3
 

Thank you! It is true.

This post is from Microchip MCU
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list