this is the output

instruction:0 11001100 101110
after extension:0 11111100 111111101110
result:111111011110
result in decimal=-34

opcode is the arithmetic operation:1 for addition and 0 for subtraction.operand 1 and operand 2 is any 12 bits two compliment integer in binary format.

1 bit | 12bits |12 bits
opcode| operand1 |operand2

hope got anyone here can solve this...

Comments
Incoherent

I agree with the reputation comment.

While I love a good challenge, especially in C, your presentation of it as a newcomer on this forum appears borderline spam. As a suggestion, don't start any paragraph in the English language with a sentence fragment such as "this is the output". The title of the thread is not the start of the message, its just a title.

Normally I would not be so critical about grammar, especially on a forum heavily involved with international students, but the lack of context in your post is self destructive, and my response is merely an attempt to correct said flaws in a constructive way.

Comments

I agree with the reputation comment.

While I love a good challenge, especially in C, your presentation of it as a newcomer on this forum appears borderline spam. As a suggestion, don't start any paragraph in the English language with a sentence fragment such as "this is the output". The title of the thread is not the start of the message, its just a title.

Normally I would not be so critical about grammar, especially on a forum heavily involved with international students, but the lack of context in your post is self destructive, and my response is merely an attempt to correct said flaws in a constructive way.

sorry for the post..
next time i improve my grammar...

This article has been dead for over six months. Start a new discussion instead.