Changes

Jump to: navigation, search

SPO600 64-bit Assembly Language Lab

28 bytes added, 16:35, 23 January 2014
no edit summary
start = 0 /* starting value for the loop index */
max = 10 /* loop exits when the index hits this number (loop condition is i<max ) */
_start:
mov $0start,%r15 /* loop index */
loop:
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 that is output on each line - you can do this by writing the digit into the message buffer before writing outputting itto stdout, or you can perform a sequence of writes for the various portions of the message.}} 7. Print

Navigation menu