Open main menu

CDOT Wiki β

Changes

SPO600 64-bit Assembly Language Lab

61 bytes added, 00:44, 10 November 2015
no edit summary
{{Admon/tip|Australia and Red|Perform this lab on [[SPO600_Servers#x86_64:_Australia|Australia]] or your own system (for x86_64) and on [[SPO600_Servers#AArch64:_Red|Red]] (for Aarch64).}}
== Lab 5 4 ==
<!--
=== Code Examples ===
The code examples for this lab are available at this link: http://england.proximity.on.ca/spo600/spo600-lab5lab4-examples.tgz
Please download this archive to your accounts on the x86_64 and Aarch64 AArch64 systems, and unpack the archive on both systems.
Unpacking the archive in your home directory will produce the following directory structure:
Loop: 9
{{Admon/tip|Character conversion|In order to print the loop index value, you will need to convert from an integer to digit character. In ASCII/ISO-9959-1/Unicode UTF-8, the digit characters are in the range 48-57 (0x30-0x39). You will also need to assemble the message to be printed for each line - you can do this by writing the digit into the message buffer before outputting it to stdout, which is probably the best approach, or you can perform a sequence of writes for the thee parts of the message ('Loop: ', number, '\n'). You may want to refer to the manpage for <code>ascii</code>.}}
7. Repeat step 6 for aarch64.