sh-dis/python/instruction_file_name.py
Zack Buhman b6c629baad initial SH4 emulator implementation in C
This currently only implements the SH2 instructions.
2024-04-21 20:54:32 +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