Compiling Assembly Script in External EEPROM to Arduino Code
I would suggest you investigate a different micro with external addressing or one that loads its code from an external memory such as flash like the ESP32s do.