A virtual cpu in C