I need help with this, i don\'t don\'t how to write machine language. I NEED A M
ID: 3736999 • Letter: I
Question
I need help with this, i don't don't how to write machine language. I NEED A MACHINE LANGUAGE PROGRAM NOT A JAVA PROGRAM. Write a machine language program that counts the number of positive and negative numbers in a sequence of numbers that are stored beginning at address x3200. The last number in the sequence is 0. The program’s output must be the following 2 lines:
Count of negative numbers: n
Count of positive numbers: m
Where n and m are the number of negative and positive numbers respectively. You can assume that n and m are always less than 10. Make sure that your program is clearly commented.
Explanation / Answer
Since you have not mentioned the machine language preference, I am providing the code in .64 BIT NASM Language:
CODE
=======================