www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/07/18:21:28

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: <Pine DOT SUN DOT 3 DOT 91 DOT 970206180507 DOT 5706N-100000 AT is>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019