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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

slim problem 1

Status
Not open for further replies.

axel23

Technical User
Mar 31, 2002
2
AU
hi dear

i have some problem with slim i really priciate it if you are going to help me out.
the problem is, there is a list of integers stored from memory location A0. there are both positive and negative numbers randomly distributed throughout the list and the only numbers in the list fall in the range between 15 and -16 you are told that there may be between 0(no number) and 24 numbers in the list.
now i have to program it to read through the list identify all the non negative integers present in it and produce a sub-list of the non negative integers to be stored from memorth location co. A separate sub-list fo negative integers will also be made and stored from memory location EO.

all the best for yours
 
Sounds like you just need to read the data and throw it in an array of size 24. You can either check for negative ints while doing this, or after you have read them all in the array, or before writing them to address C0. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top