2021-07-21 11:02 PM
I test push and pop instruction,some issue confuse me.
push cc #cc = 0
when cc=0,and cc is push to stack,the value in stack is 0x28,this mean I1 I0 is set,why?
pop cc #cc=0
when cc in stack is 0x2b,after pop,cc change to be 0x3 ,this mean I1 I0 is cleared auto,why?
the behave is correct?Please help me.
thanks.
2021-07-22 01:00 AM
Hello @jduo.1 ,
Are you sur that no interrupt happened while you're stepping?
Could you disable the interrupts using SIM and retest your code?
Disclaimer: I've never used STM8, I've just skimmed through PM0044.
Best regards,
@SBEN .2
2021-07-22 06:04 AM
I use STVD to debug, the program is not exsit ....
maybe this is caused by stm8-gdb.
2021-07-22 06:05 AM
thank you very much