所以我的调试程序是这样的: (可以根据显示值在Keil里直接定位C语言的对应位置哦) /***************************************************************************/ #ifdef DEBUG_SHOW void show_PC(void) { printat(0,2,char2hexasc(*((unsigned char idata *)(SP)))); print("_"); print(char2hexasc(*((unsigned char idata *)(SP-1)))); print(":"); } #endif
|