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.
我正在尝试编写比较 2 个字符串的代码。假设 SI 引用 string1,DI 引用 string2,每个字符串长度为 50。
它是否正确?
Mov SI,2000H Mov DI,3000H Mov CX,50H CLD REPNE CMPSW
一些问题:
重新放入 CX:好吧,如果您确定您的字符串的长度总是 2 的倍数,那么 CMPSW 会更快。你只需要调整CX的内容