¿Dónde se almacenan los resultados de las instrucciones de ensamblaje?
Frecuentes
Visto 160 equipos
1 Respuestas
1
Different assemblers work differently. For the GNU Assembler the result will go in $ecx
. This is the opposite convention from most windows assemblers.
Respondido 12 Feb 14, 05:02
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas c assembly or haz tu propia pregunta.
stackoverflow.com/questions/9458537/… - Jeyaram
Read the question. I know what the operation is performing. Where is it being stored. Back into $eax possibly? - mharris7190
Batter explanation here csi.ucd.ie/staff/jcarthy/home/alp/alp2-3.html - Jayesh Bhoi
The inputs and outputs are documented along with each instruction in Intel's Developer's Manual. Since you're using AT&T syntax rather than Intel, the ordering of the operands is different, which affects instructions with explicit destinations, like the one in your question. Adrian's answer is correct, but I wouldn't call it the property of the assembler, more a property of the assembler dialect being used. - DCoder