Skip to content

zerbzman/Chapter-6

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Chapter-6

  1. Fork the repository for the weekly assignment.
  2. Save the repository to your own account.
  3. Check the directions in the README file.
  4. Modify your code according to the directions.
  5. Make sure all of your code is committed.
  6. Push/sync up to GitHub.
  7. Create a pull request on the original repository. All assignments are due one week from when they are assigned, unless otherwise specified.
  8. You can continue to push fixes and improvements until the close date (listed in Classes) – just add a comment in the pull request to let me know it's been updated.

Chapter 6 Assignments

  1. Filling an Array
    Create a procedure that fills an array of doublewords with N random integers, making sure the values fall within the range j...k, inclusive. When calling the procedure, pass a pointer to the array that will hold the data, pass N, and pass the values of j and k. Preserve all register values between calls to the procedure. Write a test program that calls the procedure twice, using different values for j and k. Verify your results using a debugger.

  2. Summing Array Elements in a Range
    Create a procedure that returns the sum of all array elements falling within the range j...k (inclusive). Write a test program that calls the procedure twice, passing a pointer to a signed doubleword array, the size of the array, and the values of j and k. Return the sum in the EAX register, and preserve all other register values between calls to the procedure.

About

Chapter 6 Assignments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Assembly 100.0%