"Fossies" - the Fresh Open Source Software Archive

Member "fasm/examples/elfobj/writemsg.asm" (21 Feb 2022, 191 Bytes) of package /linux/misc/fasm-1.73.30.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic Assembler source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 format ELF
    3 
    4 section '.text' executable
    5 
    6  public writemsg
    7 
    8  writemsg:
    9     mov ecx,esi
   10     find_end:
   11     lodsb
   12     or  al,al
   13     jnz find_end
   14     mov edx,esi
   15     sub edx,ecx
   16     mov eax,4
   17     mov ebx,1
   18     int 0x80
   19     ret