Program to find out positive and negative numbers-assembly, Assembly Language

Program :

Write an assembly program to find out the number of positive numbers and negative numbers from a given series of signed numbers.

Solution :

Take the ith number in any of the registers.  And rotate it left throughout carry. The status of carry flag, for example the most significant bit of the number will give the information regarding the sign of the number. If CF is 1, the number is negative; or else, it is positive.

1264_program3.jpg

Posted Date: 10/12/2012 7:57:13 AM | Location : United States







Related Discussions:- Program to find out positive and negative numbers-assembly, Assignment Help, Ask Question on Program to find out positive and negative numbers-assembly, Get Answer, Expert's Help, Program to find out positive and negative numbers-assembly Discussions

Write discussion on Program to find out positive and negative numbers-assembly
Your posts are moderated
Related Questions
Write a program to evaluate the following expression. You are to evaluate the following equation: num1 - (input + num2) - (num3 + num4) Input will be a hex number input by

You will need to upload your main.c and factorial.s files and a .jpg photo of the output on your board using the Vista assignment upload features.  It must be submitted by the dead

write a program assembly language for adding two 3*3 matrix

 Pin Description of 8086 The microprocessor 8086 is a 16-bit CPU available in 3 clock rates, for example 5, 8 and 10 MHz, packaged in a40 pin CERDIP or plastic package. The 8

I can get it to copy the string but can''t get it to reverse it.

Intel's 8237 DMA controller : 1) The 8237 contain 4 independent I/O channels 2) It contains 27 registers, 7 of which are system-wide registers and 5 for each channel. 3)

Entering a Program In this section, we will explain the procedure for entering a small program on IBM PC with DOS operating system. Assume a program of addition of 2 bytes, as

to find the matrix addition

Declare 1 constant. This can be done just below the prototype section. Put the following divider above the constant section. ;************************ Constants ****************

Comparison between 8086 and 8088 All the changes in 8088 above 8086 are indirectly or directly related to the 8-bit, 8085 compatible data and control bus interface. 1) The p