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

Three things i need help on

Status
Not open for further replies.

rammer202

Programmer
Nov 2, 2005
1
0
0
US
I am new to assembly and would appreciate if you guys can give me some pointers or sample on these three things. Thanks in advance guys...

1) Read the value of N and put it into a word dw called NUM (e.g. 1027 decimal). Read as a DECIMAL (ASCII) number from the keyboard.

2) Compute the value of the integer sqrt (n) using the method we demonstrated in class from the Dewar book. (Sum of the first N integers = square of N. The code is posted on the Web Site.) Put the square root in a byte db called SQROOT.

3) Initialize an array of bits to zero. You must reserve a length of N - 2. (Actually, (N-2) div 8 since memory is arranged in bytes only) Call this table PRIMES.
 
This is obviously schoolwork.
It is a breach of the terms and conditions of forum usage to make such postings.
Please speak to your tutor if you are having problems with your schoolwork.



Trojan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top