put regs variable in core.c instead of core.h
modified initCore function