Remix.run Logo
cesarb 7 months ago

> You'd need to run strlen first.

I might be a bit rusty in my x86 assembly, but wouldn't "repnz movsb" be the x86 strcpy opcode, for zero-terminated strings?

saagarjha 7 months ago | parent | next [-]

Not a thing unfortunately; you can only use the rep prefix with movable.

muziq 7 months ago | parent | prev [-]

movsb doesn’t set any flags, so no, it isn’t..