Iterate over strings in assembly (NASM)
问题 I am trying to count the length of the string argv[1] in NASM assembly language. I think I'm on the right track. I have moved the address of argv[1] to register eax and now I want to move through it byte by byte and compare to the null string terminator. Everytime I run the code it segfaults on the null comparison. Am I not getting the memory indexing correct? *Disclaimer: This is a small part of a large homework assignment. segment .bss N: resd 1 ;counter for size of argv[1] segment .text