This commit is contained in:
2025-11-06 10:44:25 +08:00
parent 949396519e
commit 40ddda13c4
25 changed files with 66164 additions and 74 deletions

View File

@@ -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' 未找到。请确保文件路径正确。")