Final
This commit is contained in:
@@ -143,7 +143,7 @@ def main():
|
||||
# 实际应用中,可以修改为接收命令行参数来指定输入输出文件
|
||||
# 例如: python assembler.py input.asm output.hex
|
||||
try:
|
||||
with open("../program.asm", "r", encoding="utf-8") as asm_file:
|
||||
with open("../sortnum.asm", "r", encoding="utf-8") as asm_file:
|
||||
assembly_code = asm_file.read()
|
||||
except FileNotFoundError:
|
||||
print("错误:汇编文件 '../program.asm' 未找到。请确保文件路径正确。")
|
||||
|
||||
Reference in New Issue
Block a user