complete ex6(register version)

implemented almost basic function of tiny-C