Start implementing functions wrt. register-based VM