Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!tektronix!oresoft!randy From: randy@oresoft.UUCP (Randy Bush) Newsgroups: comp.lang.modula2 Subject: Re: Bit-shifting Operations Message-ID: <60@oresoft.UUCP> Date: Fri, 4-Sep-87 16:21:55 EDT Article-I.D.: oresoft.60 Posted: Fri Sep 4 16:21:55 1987 Date-Received: Sat, 5-Sep-87 23:22:53 EDT References: <8708271750.AA03034@cayuga.cs.rochester.edu> <430@cos.COM> Reply-To: randy@oresoft.UUCP (Randy Bush) Organization: Oregon Software, Portland OR Lines: 13 smith@cos.UUCP (Steve Smith) writes: >The main use that I've found for bit twiddling, shifting, etc. is a >devilish contraption known as a device regester. This refers especially >to UARTs, DMA chips, etc, although CPU status regesters have the same >problems... As Modula-2 is purported to be a SIL which provices for all aspects of programming a machine, one would expect reasonable implementations to allow one to describe a device register as a record and not have to mash on the bits by hand. -- Randy Bush, Compiler Group, Oregon Software, Portland Oregon (503) 245-2202 uucp: ..!tektronix!oresoft!randy Telemail: RBush Fidonet: 1:105/6