HP3000-L Archives

June 2005, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tracy Pierce <[log in to unmask]>
Reply To:
Tracy Pierce <[log in to unmask]>
Date:
Sat, 11 Jun 2005 22:00:10 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (58 lines)
forgot to mention: thanks, each of you, Brian and Bill, for pointing out
BITMAPCNV and DASCII.  I bet I'd have 2 less gray hairs if I'd known of them
long ago.

Tracy Pierce

> -----Original Message-----
> From: Bill Cadier [mailto:[log in to unmask]]
> Sent: Saturday, June 11, 2005 2:16 PM
> To: [log in to unmask]
> Subject: Re: MPEiX File Security ON/OFF Question/Problem
>
> Brian writes
>
> <snip>
>
> > The AIF intrinsic returns a value of +018882592
> >
> > I put this value thru the intrinsic "BITMAPCNV" and I get:
> >
> > 00000001001000000010000000100000
> >
> > Can anyone tell me which bit (or bits) indicate the ON/OFF
> setting of the
> > file?
> >
> > TIA,
> > Brian Donaldson.
>
> If you translate 018882592 to hexidecimal you get 01202020 or 01
> (true) followed by 3 blanks.
>
> I'm not sure what BITMAPCNV returns but it doesn't look the binary
> equivalent of 0x01202020 to me.
>
> On way you can extract just the boolean byte you need is by
> doing integer
> arithmetic. The low order bit of the boolean is the 24th
> (from 0) bit of the
> value so dividing by 2^24 or 16,777,216 is the same as a logical shift
> right 24 bits so 18882592 / 16777216 = 1. Or you could just
> convert it to
> hex using DASCII and take the first two bytes of the
> resulting character
> array it returns.
>
> hth,
>
> Bill
> hp/vCSY
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2