mirror of https://github.com/pret/pokeemerald.git
Add clobber list to the asm statement
parent
15353cf834
commit
fc2ce7773a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue