1 ;; -----------------------------------------------------------------------
3 ;; Copyright 1994-2008 H. Peter Anvin - All Rights Reserved
5 ;; This program is free software; you can redistribute it and/or modify
6 ;; it under the terms of the GNU General Public License as published by
7 ;; the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 ;; Boston MA 02111-1307, USA; either version 2 of the License, or
9 ;; (at your option) any later version; incorporated herein by reference.
11 ;; -----------------------------------------------------------------------
16 ;; Write decimal numbers to the console
21 ; writedec[bwl]: Write an unsigned decimal number in (AL, AX, EAX)
27 jmp short writedec_common
31 jmp short writedec_common
36 mov ebx,10 ; Conversion base
37 xor cx,cx ; Number of digits