public static function opcode36(Core $core) { $H = ($core->registersHL >> 8) + 1 & 0xff; $core->FZero = $H == 0; $core->FHalfCarry = ($H & 0xf) == 0; $core->FSubtract = false; $core->registersHL = ($H << 8) + ($core->registersHL & 0xff); }