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
MyLocation SDWORD 14 TheTest        SDWORD 8     mov    eax,MyLocation     mov    ebx,TheTest     neg     eax,ebx     sub     eax,ebx Show exactly what lives in eax after executi

ROR : Rotate Right without Carry: This instruction rotates the contents of destination operand to the bit-wise right either by one or by the count specified in register CL, exclud

this is my first project i dont know where to start

Trying to convert small programs from C to 8086 assembly language using emu 8086 emulator. I converted to low level C, but struggling with converting to the Assembly language.

code to add two matrices

assempbly language routine that takes an array named A containing n bytes of postive numebrs and fills two arranys, array B containing n words and array C containing n long words

Write a program to separate out positive and negative numbers from a given series of 16-bit hexadecimal numbers.

The Pentium   The next member of the Intel family of microprocessors was the Pentium, introduced in the year 1993. With the Pentium, Intel broke its custom of numeric model name

Write an account of your findings and produce a report containing all aspects of the above. Include a step-by-step 'simple User Guide' so that your program can be operated as inten

program to arrange a given set of numbers in descending order