Answer the question
In order to leave comments, you need to log in
Move the data from the second to the third variable. Absolute addressing in assembler?
Good day, I need help with 2 simple tasks in
Visual studio 2017 assembler
1) Declare 3 variables. Using assembler commands, send data from the 1st variable to the second, from the 2nd to the 3rd.
From 1 to 2 I sent, but how to send from 2 to 3?
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{int A = 1;
int B = 2;
int C = 3;
_asm {
mov EAX,A;
mov B,EAX;
MOV EAX,C;
MOV EAX,B;
}
}
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
int A;
int B;
A = 1;
B = 7;
_asm MOV EAX, A;
void *pB = &B;
_asm MOV EBX, pB;
_asm MOV[EBX], EAX;
return 0;
}
Answer the question
In order to leave comments, you need to log in
how to forward from 2 to 3?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question