getUsedRegisters now contains the parameter registers too