.lcomm var1 4 # allocate 4 bytes, assign the address of the first byte # to the symbolic name var1 .text # switch to program (code) space .global _start # release the definition of _start to the linker _start: # define a label for the beginning of this program nop movl $0xabcd1234, var1 # copy from immediate to direct memory # typical exit code follows movl $0x1, %eax # this tell the OS that we want to quit movl $0x0, %ebx # an exit code of 0 means normal termination int $0x80 # request OS service