core: refactored core works with sramtest.s