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.
在 .data 部分我已经定义:
MyString byte "This is my string",0h
但是我怎样才能设置一个等于 MyString 的变量?
谢谢!
您的意思是要初始化一个指针变量以指向您的字符串,还是要将字符串的内容复制到不同的字符串缓冲区?
在我的脑海中,前者会是这样的:
mov [MyDwordVariable], offset MyString
后者将类似于
mov ecx, offset MyString mov edx, offset MyNewString jmp @2 @1: inc ecx inc edx @2: mov al, [ecx] test al, al mov [edx], al jnz @1