Move all functions from core.y to asmsx.c

Code in grammar definition file is harder to debug then code in plain C
file. Eventually all functions should move to their own units, so that
asmsx.c will again only have main()