Added extmem, yet to fix GAL
Added simple ADC routines