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.
如果我有一个这样声明的字符串:
message db "ABCDEFGHIJ",0
我怎样才能创建一个指针来允许我指向该字符串中的特定字符,例如“A”字符。而且,我怎样才能创建一个循环来增加指针并因此循环遍历整个字符串?
mov ecx, message ; Masm would use "offset" top: mov al, [ecx] ; get a character inc ecx ; get ready for next one cmp al, 0 ; end of string? jz done ; do something intelligent with al jmp top done: