Revert "Take out defines, asm functions and strctures into vm.h"

This reverts commit 3fa57e265a81a402c4c27c0ed90c4b5c40970cb7.