Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intel assembly array question

Status
Not open for further replies.

Unixwiz99

IS-IT--Management
Aug 17, 2002
1
US
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 suggest looking for how to create arrays in assembly language. You should probally be able to find something with msn or google search engine. You should take a look at Art of Assembly langugage Programming, its the best website on assembly language.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top