 
   if address == 0xFF0F {
     // IF – Interrupt Flag (R/W)
-    return IF;
+    // NOTE: Unused bits are 1 in this register because who the fuck knows
+    return IF | 0xE0;
   } else if address == 0xFFFF {
     // IE – Interrupt Enable (R/W)
     return IE;


// [76] HALT
def op_76() {
  HALT = true;
}

// [77] LD (HL), A

}

def cpu_reset() {
  cpu_skip = false;

  // CPU variables
  PC = 0x0100;
  SP = 0xFFFE;
