🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by joel Tue, 05 Aug 1986 00:25
Re: Bit stripping
#499
Author: joel
Date: Tue, 05 Aug 1986 00:25
14 lines
971 bytes
Yet another way to accomplish stripping off the parity bit is using set
arithmetic.

ch := char(bitset(ch) * bitset{0..6}))

Of course, this may not generate great code either.  Mike Powell's compiler
for the VAX generates an extra mcoml instruction on the constant 127, rather
than complementing at compile-time.  (No AND instruction, just an AND NOT
instruction on the VAX.)

-- 
- Joel McCormack {ihnp4 decvax ucbvax allegra}!decwrl!joel
		 joel@decwrl.arpa
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads