[Vollbild]  [Home]TUX
;-------------------------------------------------
;Gibt den Wert von eax als Dezimalzahl auf der Standardausgabe aus.
;-------------------------------------------------
;Writes the value of eax to the standard output as decimal.
;-------------------------------------------------

LICENSE


;%include "./INC/stdout.inc"

stdout:
section .data

.buf db '0000000000',10,0

section .text
.
pushad
movebx,.buf+9
movecx,10
movedi,10
a:
movedx,0
divedi
addedx,48
mov[ebx],dl
decebx
loop.a

moveax,4;write
movebx,1;to terminal
movecx,.buf
movedx,11;11 bytes
int$80

popad
ret

Free Web Hosting