asm volatile("cld\n\trepne\n\tinsl"
: "=D" (addr), "=c" (cnt)
: "d" (port), "0" (addr), "1" (cnt)
: "memory", "cc");
Here insl is used so it is saying do input four times but wht tells it that when doing input four times instead of putting each byte at next memory address load it at one address only, but first byte at 0-7 than 8-15 than 16-23 than 24-31
Or you can say my problem are these lines except :
: "memory", "cc");
And in detail explanation of cld clear direction flag and effect on di and si plz with an example