(defun rename-registers-to-mflow () "rename from software names to register nums" (interactive) (setq beg (point)) (replace-string "v0" "r0")(goto-char beg) (replace-string "t0" "r1")(goto-char beg) (replace-string "t2" "r3")(goto-char beg) (replace-string "t3" "r4")(goto-char beg) (replace-string "t4" "r5")(goto-char beg) (replace-string "t5" "r6")(goto-char beg) (replace-string "t6" "r7")(goto-char beg) (replace-string "t7" "r8")(goto-char beg) (replace-string "s0" "r9")(goto-char beg) (replace-string "s1" "r10")(goto-char beg) (replace-string "s2" "r11")(goto-char beg) (replace-string "s3" "r12")(goto-char beg) (replace-string "s4" "r13")(goto-char beg) (replace-string "s5" "r14")(goto-char beg) (replace-string "s6" "r15")(goto-char beg) (replace-string "fp" "r15")(goto-char beg) (replace-string "a0" "r16")(goto-char beg) (replace-string "a1" "r17")(goto-char beg) (replace-string "a2" "r18")(goto-char beg) (replace-string "a3" "r19")(goto-char beg) (replace-string "a4" "r20")(goto-char beg) (replace-string "a5" "r21")(goto-char beg) (replace-string "t8" "r22")(goto-char beg) (replace-string "t9" "r23")(goto-char beg) (replace-string "t10" "r24")(goto-char beg) (replace-string "t11" "r25")(goto-char beg) (replace-string "ra" "r26")(goto-char beg) (replace-string "t12" "r27")(goto-char beg) (replace-string "t1" "r2")(goto-char beg) (replace-string "pv" "r27")(goto-char beg) (replace-string "gp" "r29")(goto-char beg) (replace-string "at" "gp")(goto-char beg) (replace-string "sp" "sp")(goto-char beg) (replace-string "zero" "rZ")(goto-char beg) )