Changes

Jump to: navigation, search

SPO600 64-bit Assembly Language Lab

64 bytes added, 15:33, 23 January 2014
Lab Tasks
syscall
Extend this loop code, combining it with code from the "Hello World" example, so that it prints each digit from 0 to 9 like this:
Loop: 0
Loop: 9
{{Admon/tip|Character conversion|In order to print these valuesthe 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 that is output on each line - you can do this by writing the digit into the message buffer before writing it, or you can perform a sequence of writes for the various portions of the message.}}

Navigation menu