I'm looking to load a string byte by byte to check for a null value that signifies the termination of that string in x86. I had prior done this in ARM using ldrb as such:
loop:
ldrb r1, [r0], #1 //Load next byte of string into r0
cmp r1, #0 //Check this byte against 0
beq end //If the byte is equal stop and print
//... Other operations omitted
b loop//Branch back to top
In this example r0 holds the string and ldrb is used to load the next 1 byte into r1 per loop cycle. I'd be looking to do roughly the same thing in x86