Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!OSHKOSHW.BITNET!WURZBACH From: WURZBACH@OSHKOSHW.BITNET ("William F. Wurzbach") Newsgroups: comp.lang.asm370 Subject: Collating sequence of Hex ... Message-ID: <8910262330.AA21174@brazos.rice.edu> Date: 26 Oct 89 21:18:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: IBM 370 Assembly Programming Discussion List Distribution: inet Organization: The Internet Lines: 26 I'm currently working on a small assembler project, and am faced with the following problem: Being passed a list of EBCDIC character representations of hexadecimal addresses, I must sort them into collating sequence. Unfortunately, EBCDIC A - F collates *before* 0 - 9, but in true hex, it collates *after*. Has anyone written a small subroutine that can maybe check for the validity of the passes arguments ( 0-9,A-F ), and use some form of TR, TRT, CLI, ...etc to get them into a form that collates properly ? I just *know* this has been done before, I just can't find any examples at the moment. I'm sure I can cobble something together, but it may not be pretty. Any suggestions ? I am not currently subscribed to the list, so please send mail to me directly. I will summarize the responses and post them to the list later. Thanks for any help you can offer. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= William Wurzbach, System Programmer | Fax : (414) 424 - 0010 c/o Computer Services | Phone : (414) 424 - 3018 University of Wisconsin - Oshkosh | Bitnet : WURZBACH@OSHKOSHW 800 Algoma Blvd. | Internet : WURZBACH@OSHKOSH.WISC.EDU Oshkosh, Wisconsin 54901 | =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=