Adapted for new register functions support (ESP_reg in register functions now points after the arguments).