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 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.
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 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.