Question

Reverses the sign of an operand. Operand can be a register or memory operand. . data valB BYTE -1 valW WORD +32767 . code mov
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer is as follows :

As we know that AX is 16 bit register and  16 bit range varies from -32768 to +32767.

So when we apply neg to -32768 it will turn to +32768 i.e. out of range for 16 bits.

So the result is NOT VALID.

if there is any query please ask in comments...

Add a comment
Know the answer?
Add Answer to:
Reverses the sign of an operand. Operand can be a register or memory operand. . data...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Assembly Language: Write and run a program to find the values of each destination operand: .data...

    Assembly Language: Write and run a program to find the values of each destination operand: .data varB BYTE 65h,31h,02h,05h varW WORD 6543h,1202h varD DWORD 12345678h .code mov ax, WORD PTR [varB+2] ; a= mov bl, BYTE PTR varD ; b= mov bl, BYTE PTR [varW+2] ; c= mov ax, WORD PTR [varD+2] ; d= mov eax,DWORD PTR varW   ; e=

  • Complete the following Intel assembly language program which determines whether the byte sized operand stored in...

    Complete the following Intel assembly language program which determines whether the byte sized operand stored in memory location 'number' is prime or not. The program will write the value of 0 into the memory location 'answer' if the number is not prime, otherwise the initial value of '1' will be left unmodified (indicating that the number is prime). The program makes use of the DIV instruction to determine the value of quotient and remainder when dividing the number by 2,3,4,......

  • Q 2. Assuming a 32-bit operating environment, identify the mode of each operand in the following...

    Q 2. Assuming a 32-bit operating environment, identify the mode of each operand in the following instructions. (Note: There are two operands in each instruction; identify both modes.) For a memory operand, specify whether it is direct memory mode or register indirect memory mode. Assume that the instructions are in a program also containing the code. .DATA value DWORD ? char BYTE *1. mov value, 100 2. movecx, value 3. mov ah, Oah *4. moveax, (esi] 5. mov [ebx], ecx...

  • Instruction set architecture R: register X, Y, Op1, Op2: Operand Quantity: constant value EA: Effective memory...

    Instruction set architecture R: register X, Y, Op1, Op2: Operand Quantity: constant value EA: Effective memory address Opcode Operation Name MOV X Y XCH Opl, Op2 ADD X, Y SUB X, Y SAL Op. Quantity SAR Op. Quantity SHR Op Quantity AND X, Y OR X. Y XOR X, Y NOT X LOAD RA LOAD R. (A) STORERA STORE R. (A) Description Move data from Y to X Exchange Opl with Op2 X=X+Y X=Y-X Shift Arithmetic Left on Op for...

  • Write down the value of each destination operand: .data var1 WORD 0A8B4h, 1234h, 0BA23h var2 DWORD...

    Write down the value of each destination operand: .data var1 WORD 0A8B4h, 1234h, 0BA23h var2 DWORD 0E2A478C1h .code mov ax, WORD PTR [var1+3] mov eax, WORD PTR [var2+1] mov ebx, DWORD PTR [var1+2]

  • Write down the value of each destination operand: .data var1 WORD 3056h, 7645h, 0E347h var2 DWORD...

    Write down the value of each destination operand: .data var1 WORD 3056h, 7645h, 0E347h var2 DWORD 3E56F289h .code mov ax, WORD PTR [var2+1] mov eax, DWORD PTR [var1] mov ebx, DWORD PTR [var1+3]

  • ) Identify the hexadecimal value moved to the destination by each of the following instruction below...

    ) Identify the hexadecimal value moved to the destination by each of the following instruction below based on the given data declaration. Assume that the offset of byteVal is 00000000H data byteVal wordVal dwordVal aString BYTE 1,2,3,4 WORD 1000H,2000H,3000H,4000H DWORD 12345678H,34567890H BYTE "ABCDEFG",0 ax,offset byteVal i. mov dx,wordVal i. mov al,aString+2 i11. mov dx,wordVal+4 iv. mov mov eax,offset byteVal+2 V. CO2 (10 marks) d) The incomplete program below used to find the multiplication product of the given numbers by 4...

  • Answer the following questions I want to double check my work

    Answer the following questions I want to double check my work Q1: (8086 processor) Translate the following code segment written in high level languages into assembly code. Assume Ax contains signed number. If AX >=2 then CX=CX+1 ; Else AX-CX; End Q2: Show how this statement M JK-1 could be translated into assembly code using 8086 instruction set a) b) MIPS instruction set Assume M. J and K are memory variables In s086 assume 16-bit, we can use MOv instruction...

  • Anyone explain to (i), (ii) How can we get the instruction words and R8=?[hex]? (i) instruction...

    Anyone explain to (i), (ii) How can we get the instruction words and R8=?[hex]? (i) instruction words[hex] is 0x4508, and R8= 0xF002 How can I get that? (ii) instruction words[hex] is 0x4548 and R8=0x0002 How can I get that? Consider the following instructions given in the table below. For each instruction determine its length (in words), the instruction words (in hexadecimal), source operand addressing mode, and the content of register R7 after execution of each instruction. Fill in the empty...

  • 1 to 15 blanks thank you! (1 point) For registers, Integers are encoded in one of...

    1 to 15 blanks thank you! (1 point) For registers, Integers are encoded in one of two basic types 1. and 2. (1 point) The number 201 as a one byte unsigned integer is represented as in binary and in hexadecimal. (1 point) The 2 methods for representing signed integers are 3. and (5 points) What is the 16 bit representation of -125 in 2's complement notation? 4. (5 points) What is the decimal representation of the signed integer 10000001?...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT