;Adobe Helvetica normal ;------------------------------------------------- ; Code for the best assembler: The Netwide Assembler: NASM ; Copyright (C) 2004 by Sebastian Beck; sebastian.bw@freenet.de ; Wenn Sie eine Spende machen wollen, fragen Sie mich über E-Mail ; nach meiner Bankverbindung. ; If you want to make a donation, please question me by e-mail for ; my banking connection. ; This program is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as ; published by the Free Software Foundation. ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; http://www.gnu.org/ ;------------------------------------------------- ;Gibt den Wert von eax als Dezimalzahl auf der Standardausgabe aus. ;------------------------------------------------- ;Writes the value of eax to the standard output as decimal. ;------------------------------------------------- ;%include "./INC/stdout.inc" stdout: section .data .buf db '0000000000',10,0 section .text pushad mov ebx,.buf+9 mov ecx,10 mov edi,10 .a: mov edx,0 div edi add edx,48 mov [ebx],dl dec ebx loop .a mov eax,4 ;schreibe mov ebx,1 ;auf Terminal mov ecx,.buf mov edx,11 ;11 Bytes int $80 popad ret