Re-program the Arduino Uno without losing a base (custom firmware) sketch

You could do it through a fixed vector table.