diff --git a/src/ieu/bmu/bitfieldedit.py b/src/ieu/bmu/bitfieldedit.py deleted file mode 100644 index a9f604a33..000000000 --- a/src/ieu/bmu/bitfieldedit.py +++ /dev/null @@ -1,32 +0,0 @@ -""" - bitfieldedit.py - Script that appends 0 just before the "illegal instruction" field of the bitstring - Written by Kevin Kim -""" -def addZero(s): - try: - indexSemicolon = s.index(";") - newS = s[:indexSemicolon-1]+"0_"+s[indexSemicolon-1:] - return newS - except: return s - -def main(): - filename = input("Enter full filename: ") - n1 = int(input("Line number to begin: ")) - n2 = int(input("Line number to end: ")) - f = open(filename, "r") - flines = f.readlines() - - #create list of lines from line n1 to n2, inclusive - lines = flines[(n1-1):(n2-1)] - - #string to be printed - out = "" - - for i in range(len(lines)): - lines[i] = addZero(lines[i]) - out += lines[i] - print(out) - -if __name__ == "__main__": - main() \ No newline at end of file