In the other thread (" Buffer not filled while reading disk...") we were talking about operating with CPU registers in inline asm.
Octocontrabass wrote:
This is handled by the constraints in the inline assembly.
You can read about it in the GCC manual.psimonson1988 wrote:
Oh by the way, "a"(val), "b"(buffer), "c"((c << 8) | s), "d"((h << 8) | p->drive) is how you set ax, bx, cx, and dx in GNU inline assembly. Just in case you didn't know.
Woooah! That's both too sophisticated for me! I think I stick to Nasm and C, neatly separated...
But ok, I give it a try:
"a"(0x0201), "b"(buffer) etc. where buffer is the variable name for the buffer. Would that be correct?
Edit: I think it must be "a"($0x0201)
But I don't understand the constraints from the GCC manual. Any chnace there's a more easy to understand text about it?
Next thing to learn for me is Git. I hope I can understand at least that. I will get two books about it from the library.