Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
打印 az。移动 DL, 'A' ; cmp DL, 'Z' ; jge 下一个;添加 DL, 01H ; 向 DL jmp addPrint 加一;
起初,在您的程序中根本没有打印。仅循环从“A”循环到“Y”(一个错误),然后转到下一步。
在您的情况下,您不需要.data和.bss部分。.data应该包含程序所需的初始化数据(字符串、表格等)和.bss未初始化的数据。(顺便说一句,汇编程序是什么?therm“段”通常用于保护模式编程,而不是DOS。通常称为“段”。)
.data
.bss
如果您尝试创建 DOS .com 文件(org 100h),则不能使用乘法段。因此,您必须只有一个段并将所有代码和数据放在那里。