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.
我需要像这样在 intel 8086 程序集中做一个字符串数组,例如:
.DATA myvec dw 5 dup('string1','string2','string3','string4','string5') (...) .CODE lea si, myvec[1] call PRINT_STRING (...)
但是此代码不适用于字符串,只能逐个字母。如何做到这一点?我需要在访问 1 位置向量时,例如,它访问一个完整的字符串,而不仅仅是一个字母。
您需要分别指定每个字符串,然后为每个字符串创建一个地址列表。
.DATA str1 db "string1",0 str2 db "string2",0 str3 db "string3",0 str4 db "string4",0 str5 db "string5",0 myvec dw str1,str2,str3,str4,str5