dumpRegisters method