#!/bin/bash PROGRAM="$1" sed -i "s/32768/r0/g" "$PROGRAM" sed -i "s/32769/r1/g" "$PROGRAM" sed -i "s/32770/r2/g" "$PROGRAM" sed -i "s/32771/r3/g" "$PROGRAM" sed -i "s/32772/r4/g" "$PROGRAM" sed -i "s/32773/r5/g" "$PROGRAM" sed -i "s/32774/r6/g" "$PROGRAM" sed -i "s/32775/r7/g" "$PROGRAM"