>>97390481The GBA games use Flash RAM, the internal battery is solely used for the internal clock (and therefore does not exist in FR/LG which does not have an internal clock)
The GBC games use battery-backed SRAM, if the internal battery dies it will delete saves if the power is switched off. It'll keep them if you soft reset the game or if you're very quick with your power off-on but anything more than that it won't keep the data.