Question: Write a programm in x86 assembly language to do the following. Read a string of 8 characters that represents an 8-bit binary number(in twos complement
Write a programm in x86 assembly language to do the following. Read a string of 8 characters that represents an 8-bit binary number(in twos complement format) from the keyboard. Since the string represents a binary number, the individual characters may therefore only be 0 or 1. Display an error message if all the characters entered are not either 0 or 1 Determine whether the number is positive or negative. If the number is negative, display the message, The number is negative on the screen. Hint, a number in twos complement is negative if the left-most bit is 1.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
