From: zaphod AT sci DOT fi (Aatu Koskensilta) Newsgroups: comp.os.msdos.djgpp Subject: Re: printing numbers with NASM Date: 7 Feb 1997 14:38:02 GMT Organization: Scifi Communications International Oy, http://www.sci.fi/, helpdesk AT sci DOT fi, 03 2899111 Lines: 14 Message-ID: <5dfeoa$m1h@tron.sci.fi> References: NNTP-Posting-Host: sci.fi To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote: : On Thu, 6 Feb 1997, Liam wrote: : > It kinda works, it prints the ascii character of my dos version, a bell(7). : > How would you get it to print the number? : Add '0' (ASCII 48, I think) to it before printing. This only works for values under 10. Otherwise you have to convert the number into a string, if you wish to print it. Aatu Koskensilta aka sqrt(-1) (zaphod AT sci DOT fi) www.sci.fi/~zaphod