Part two of the coursework is worth 33% of the coursework total,
and 20% of the module total.
Part two of the coursework covers the following learning
outcome:
Write simple programs at the assembly/machine level for string
processing and manipulation.
The program contains two functions that process the name of the
employee:
capitalise_name ensures that each character in the name is
capitalised (e.g., a becomes A, b becomes B, etc.).
generate_checksum calculates the checksum for the employee by
adding up the characters in the name.
We want to improve the performance of processing multiple
employees, and it is believed that these functions may be faster if
they were programmed in assembly. Your task is to convert
capitalise_name and generate_checksum to be assembly based. That
is, these functions should process the string character data using
only assembly instructions written in inline assembly.
Helpful Advice
From ASCII we know that uppercase characters have values 65 to
90. Lowercase characters have values 97 to 122. Therefore:
a - A = 32
b - B = 32
...
z - Z = 32
Part two of the coursework is worth 33% of the coursework total, and 20% of the module total. Part two of the coursework
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Part two of the coursework is worth 33% of the coursework total, and 20% of the module total. Part two of the coursework
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!