Changes

Jump to: navigation, search

Assembler Basics

6 bytes removed, 00:18, 24 January 2014
Format of an Assembly Language program
<font color="blue">_start:</font>
movq mov $<font color="blue">len</font>,%rdx /* message length */ movq mov $<font color="blue">msg</font>,%rsi /* message location */ movq mov $<font color="orange">1</font>,%rdi /* file descriptor stdout */ movq mov $<font color="orange">1</font>,%rax /* syscall sys_write */
syscall
movq mov $<font color="orange">0</font>,%rdi /* exit status */ movq mov $<font color="orange">60</font>,%rax /* syscall sys_exit */
syscall

Navigation menu