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
1. Start your program at address $8500. To do this you need to inform the assembler, through the EQU and ORG assembler directives, that you want your program to start at $8500. Thi

For an 8088 the 2 addresses linked with an 8259A are normally consecutive, and the AO line is associated to the AO pin, but because there are just 8 data pins on the 8259A and the

hey ,, I need to know how to let a symbol moves with mouse ??

Memory Address Decoding Binary Decoders - Decoders have 2n-inputs and n outputs, each input combination results in a single output line contain a 1, and all other lines contain


I am assigned to implement dijkstra algorithm in assembly language. I am not a novice in assembly. I need help implementing it.Kindly if anyone then please.

Pin diagram of 8088 : The pin diagram of 8088 is shown in given figure. Most of the 8088 pins and their functions are exactly similar to the corresponding pins of 8086.  Hence

Write a MC68H12 assembly language program to find the largest number in an array of ten 8-bit numbers. The array is stored in memory locations starting at address $1100. Use branch

Perform an extensive web search of popular microcontroller manufacturers (some of the major players) to select a suitable device for the system to control the lighting of a typical

Modes of 8254 :   Mode 0 (Interrupt on Terminal Count)-GATE which value is 1 enables counting and GATE  which value is 0 disables counting, and GATE put not effect on