2 assembly languageAssuming that the variables have been dec

2. (assembly language)Assuming that the variables have been declared properly, indicate whether the following statements are syntactically correct or incorrect.

If incorrect, indicate what is wrong with the statement:

A. move cat,5

B. mov dog,cat

C. mov eax,ebx

D. mov mouse,-7

E. mov 1,frog

F. mov horse,ecx

Solution

A. move cat, 5: is syntactically correct in form: mov memory, immediate

B. mov dog,cat is wrong: this form is mov memory, memory , which is not allowed

c.mov eax,ebx is correct: this form is allowed: Mov register,register

d. mov mouse, -7 is correct, this form is allowed : MOV memory, immediate

E. mov 1 , frog    is wrong: MOV immediate, memory: form not allowed.

F. mov horse, ecx is correct. this form is allowed: Mov memory, register

2. (assembly language)Assuming that the variables have been declared properly, indicate whether the following statements are syntactically correct or incorrect.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site