Commits

spencercw committed 6d2a73f

Update file missing from previous commit.

Comments (0)

Files changed (1)

gb_emulator/ops.txt

 }
 clog << "stop: stub\n";
 f3   DI         'di'                 0 1 1
-if (ime >= IME_ENABLING1)
-{
+switch (ime)
+{
+case IME_ENABLED:
+case IME_ENABLING1:
+case IME_ENABLING2:
 	ime = IME_DISABLING1;
+	break;
 }
 fb   EI         'ei'                 0 1 1
-if (ime <= IME_DISABLING1)
-{
-	ime = IME_ENABLING1;
-}
+switch (ime)
+{
+case IME_DISABLED:
+case IME_DISABLING1:
+case IME_DISABLING2:
+	ime = IME_ENABLING1;
+	break;
+}
 
 ; Rotates and shifts