I am new to assembly and I am trying to figure out how to set up an (2) 25 integer (16 bit) arrays, then using the Randomize proc set up random seed variables in the 1 of the arrays up to 1500 and just intialize the second.
I want to print out the 1st array using Writeint proc.
I want to be able to calculate the sum of all the integers in the array, print out that value of that (Total SUM)
Then, I want to subtract each value of the 1st array from the TOTAL SUM and put the difference value into the 2nd array.
I can figure out how to do this under pascal or basic, but I am having a devil of a time figuring it out under Intel assembly. CAN ANYONE GIVE ME A HAND ? I have been working on this for a week!!! I am using MASM as my compiler.
Thanks in advance and I would appreciate your help
I want to print out the 1st array using Writeint proc.
I want to be able to calculate the sum of all the integers in the array, print out that value of that (Total SUM)
Then, I want to subtract each value of the 1st array from the TOTAL SUM and put the difference value into the 2nd array.
I can figure out how to do this under pascal or basic, but I am having a devil of a time figuring it out under Intel assembly. CAN ANYONE GIVE ME A HAND ? I have been working on this for a week!!! I am using MASM as my compiler.
Thanks in advance and I would appreciate your help