🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3806

Re: Bit-shifting Operations

#3806
From: Randy Bush
Date: Fri, 04 Sep 1987 20:21
13 lines
1248 bytes
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
Technical Details
Message-ID: <60@oresoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!tektronix!oresoft!randy
References: <8708271750.AA03034@cayuga.cs.rochester.edu> <430@cos.COM>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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