inputStringLen = 16 .lcomm inputString inputStringLen .text .global _start _start: movl $3,%eax # system service 3, file read movl $0,%ebx # file handle 0, stdin movl $inputString,%ecx # where to store the characters read movl $inputStringLen,%edx # number of characters to read int $0x80 # make the request! movl %eax,%edx # the number of characters to print is the number # of characters that we have read movl $4,%eax movl $1,%ebx movl $inputString,%ecx int $0x80 # movl $inputStringLen,%edx movl $1,%eax # put a break point here so we can inspect vars movl $0,%ebx int $0x80