@Fenn the game boy only crashes when you remove the cart if it's currently executing code from the cart
so they moved the instruction pointer to ram and had it busy loop there for like 10 seconds while they swapped out the cart, then ran the initialization code but with some modifications to change how the new rom played