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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started