No ACL setup yet! Denying access to everyone.
en:edu:zmitac:s1:apl:lab:lab3
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:edu:zmitac:s1:apl:lab:lab3 [2024/12/03 11:21] – [The example code] ktokarz | en:edu:zmitac:s1:apl:lab:lab3 [2024/12/03 14:40] (current) – [Tasks to be done during laboratory] ktokarz | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| .data | .data | ||
| SourceDataString DB ' | SourceDataString DB ' | ||
| - | DestinBaseString DB ' | + | DestinBaseString DB ' |
| - | DestinIndexString DB ' | + | DestinIndexString DB ' |
| - | DestinDisplString DB ' | + | DestinDisplString DB ' |
| .code | .code | ||
| Line 127: | Line 127: | ||
| </ | </ | ||
| ===== Tasks to be done during laboratory ===== | ===== Tasks to be done during laboratory ===== | ||
| - | - Compile the example code and observe its behaviour. Set the breakpoint at the beginning of the code and see how the contents of the registers change with every loop pass. | + | 1. Compile the example code and observe its behaviour. Set the breakpoint at the beginning of the code and see how the contents of the registers change with every loop pass.\\ |
| - | - Make the function more universal: define | + | 2. Observe |
| - | - Rewrite | + | 3. Write the version of the assembler function which copies the source to a destination string using chosen string instruction with repetition (use REP prefix). |
| - | - Compare execution time for scalar | + | ===== For the report ===== |
| + | 1. Put in the report a screenshot of the window | ||
| + | 2. Explain differences in addressing modes used in the functions. Explain what is the result | ||
| + | < | ||
| + | Address_difference EQU DestinDisplString | ||
| + | </ | ||
| + | 3. Include the code of your new function written in assembler WITH COMMENTS. Also, add a screenshot of the window with the results displayed | ||
| + | |||
en/edu/zmitac/s1/apl/lab/lab3.1733221302.txt.gz · Last modified: by ktokarz
