Add clobber list to the asm statement

Kurausukun 2024-12-11 10:02:37 -05:00
parent 15353cf834
commit fc2ce7773a
1 changed files with 1 additions and 1 deletions

@ -37,7 +37,7 @@ static void ReadKeys(void)
+ IeBak = REG_IE; // IE save + IeBak = REG_IE; // IE save
+ REG_IE = INTR_FLAG_KEYPAD; // Enable Key interrupt + REG_IE = INTR_FLAG_KEYPAD; // Enable Key interrupt
+ REG_IME = 1; + REG_IME = 1;
+ asm("swi 0X03"); // This is the Stop command + asm("swi #3" : : : "r2", "r12", "memory"); // This is the Stop command;
+ REG_IME = 0; + REG_IME = 0;
+ REG_IE = IeBak; // IE return + REG_IE = IeBak; // IE return
+ REG_IME = 1; + REG_IME = 1;