Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!shelby!agate!ucbvax!VCCSCENT.BITNET!SOMITCW From: SOMITCW@VCCSCENT.BITNET Newsgroups: comp.lang.asm370 Subject: Please help for writing d.words Message-ID: <9102211530.AA22410@ucbvax.Berkeley.EDU> Date: 21 Feb 91 15:13:02 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List Distribution: inet Organization: The Internet Lines: 18 On Wed, 20 Feb 91, oeyo8729@trearn said: >Now, I have a problem with to write double word numbers to screen >in assembly ? Do you have any example or macro about floating to >character conversion ? Would you please help to me. Thanks. I have no examples, it has been years. To convert to characters, do a STD, UNPK, and TR. Multiple UNPK's may be needed. Last byte of the UNPK will be garbage. The TR should point to 240 bytes before table CL16'0123456789ABCDEF'. OR, If you need to convert to decimal numbers, multiply by 1,000,000,000. Do a STD. Separate the whole number from the sign, fractions, etc. Load the whole number into a general purpose register. CVD, UNPK, and put the decimal point back in.