sh-dis/python/instruction_file_name.py
Zack Buhman 8a300ba4c6 initial SH4 emulator implementation in C
This currently only implements the SH2 instructions.
2024-04-22 20:53:36 +08:00

8 lines
226 B
Python

def instruction_file_name(ins):
if ins.operands:
file_name = ' '.join([ins.instruction, ins.operands])
else:
file_name = ins.instruction
file_name = file_name.replace('/', '_')
return file_name