Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!ihnp4!drutx!houxe!hogpc!houti!ariel!vax135!floyd!cmcl2!seismo!rlgvax!cvl!umcp-cs!koved From: koved@umcp-cs.UUCP Newsgroups: net.unix,net.arch Subject: Re: Does C depend on ASCII? Message-ID: <6999@umcp-cs.UUCP> Date: Thu, 10-May-84 12:06:58 EDT Article-I.D.: umcp-cs.6999 Posted: Thu May 10 12:06:58 1984 Date-Received: Sat, 12-May-84 02:23:30 EDT References: <491@ihuxj.UUCP> Organization: Univ. of Maryland, Computer Science Dept. Lines: 23 There appear to be only 2 instructions which are EBCDIC dependent - PACK and UNPACK. These are used to convert EBCDIC digits to packed form which is used for arithmetic, or can be further converted to binary. Conversion from EBCDIC to ASCII and back is trivial...use a translate table (256 bytes) for each direction, and a single instruction (TRanslate) to convert up to 256 bytes at a time. BTW, ASCII terminals are frequently attached to IBM Mainframes. Two methods are possible. The direct attach (or dial-up) is done, and typically supports the IBM 3101 (an ASCII terminal) or other types of TTY. The other method is to attach to an external box (typically the IBM Series/1) which does the conversion between character sets. I hope this clears up some of the confusion. P.S. The only devices which are character set dependent are the display units (3270 type devices), and printers. Some are EBCDIC, and some are not. Codes may be device dependent. -- Spoken: Larry Koved Arpa: koved.umcp-cs@CSNet-relay Uucp:...{allegra,seismo}!umcp-cs!koved