Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'argument': 0.05; 'desired.': 0.07; '32-bit': 0.09; 'chunk': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:How': 0.10; 'bits.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'word),': 0.16; 'index': 0.16; 'memory': 0.22; '+0000': 0.22; 'byte': 0.24; 'bytes': 0.24; 'interpret': 0.24; 'url:home': 0.24; 'header:X-Complaints-To:1': 0.27; 'instruction': 0.29; 'you?': 0.31; 'older': 0.33; 'subject:from': 0.34; 'could': 0.34; 'but': 0.35; 'sequence': 0.36; 'next': 0.36; 'charset:us-ascii': 0.36; 'received:76': 0.38; 'to:addr:python-list': 0.38; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'read': 0.60; 'address': 0.63; 'subject:get': 0.81; '(word': 0.84; 'xerox': 0.84; 'edwards': 0.91; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: How to get an integer from a sequence of bytes Date: Tue, 04 Jun 2013 20:34:48 -0400 Organization: > Bestiaria Support Staff < References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-31-163.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370392497 news.xs4all.nl 15980 [2001:888:2000:d::a6]:60148 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46986 On Tue, 4 Jun 2013 13:39:22 +0000 (UTC), Grant Edwards declaimed the following in gmane.comp.python.general: > > But you couldn't address individual 6-bit "hextets" in memory could > you? My recollection is that incrementing a memory address got you > the next 60-bit chunk -- that means that by the older terminology a > "byte" was 60 bits. A "character" was 6 bits, and a single register > or memory location could hold 6 characters. > How would you interpret the Xerox Sigma instruction set then... It had LW (load word), LH (load halfword), LB (load byte) instructions... BUT the address argument was always considered as a 32-bit word (word 1 was 32-bits after word 0). To actually read a sequence of bytes required using LB with an auxiliary index register, which identified which byte in the word was desired. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/