12.3k views
22 votes
what is wrong with the following, exercise 1 1313 unread replies.1313 replies. Specify which instructions do not work according to masm syntax and why. ; var1 and var2 are of size bytes mov eax, var1 mov var1, var2 mov bx, var2 mov bh, var1

User Kevin Rave
by
7.3k points

1 Answer

5 votes

Answer:

The solution to this question can be defined as follows:

Step-by-step explanation:

If we learn, they should use normal intel syntax in MASM assembly language when writing assembly codes. Consequently, its first operand was its venue, and another is the source as per this intellect syntax.

For instance. In mov eax ,var1

eax is a 32-bit data registry that would be the aim, that is copies to eax by the meaning of var1.

bx is a 16-bit base registry that has a var2 value.

bh is indeed a simple registry 8-bit component provided to the Var1 value.

It's not the Master Syntax, because they transfer the data contained from var2 to var1 explicitly instead of using the records. It's the best approach, when they move data, through the registers.

User Aniket Kariya
by
7.5k points