Check stackpointer

This commit is contained in:
Stefan `Sec` Zehl 2011-08-02 20:53:43 +02:00
parent 861994ef93
commit b6ef360f43
1 changed files with 18 additions and 1 deletions

View File

@ -43,7 +43,7 @@ void ChkBattery(void) {
lcdPrintln("0");
};
lcdRefresh();
// delayms_queue(100);
delayms_queue(100);
} while ((getInputRaw())==BTN_NONE);
}
@ -137,3 +137,20 @@ void tick_alive(void){
};
return;
};
//# MENU debug ShowSP
void getsp(void) {
int dx=0;
int dy=8;
int x;
lcdClear();
dx=DoString(0,dy,"SP:");
while ((getInputRaw())==BTN_NONE){
__asm( "mov %0, sp\n" : "=r" (x) :);
DoIntX(0,dy+8,x);
lcdDisplay();
delayms_queue(50);
};
dy+=16;
dx=DoString(0,dy,"Done.");
};