Re: How do i change numerics into binary numbers?
- From: "Larry Serflaten" <serflaten@xxxxxxxxxxxxxx>
- Date: Mon, 2 Oct 2006 03:12:06 -0500
"Howk013" <Howk013@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
The total allocated bits to the whole program is supposed to be 168bits
Is that 168 contigious bits, as would be supposed, or is that 168 bits
scattered out into 28 (8-bit) bytes as you seem to be indicating???
hence , it will look like this : (so on and so forth till the last
parameter is clicked )
000 001 ---------------------> 1
1(bit 7)0(bit 8)0 000---------> P -> 100000 should be @
000 000-----------------------> 0
000 000-----------------------> 0
000 000-----------------------> 0
011 111-----------------------> O -> 011111 should be ?
11x xxx and so on
The errors in your conversion from 6-bit ASCII is also adding
difficulty to understanding what it is you want. From the above,
it looks like you'd end up with a STRING of 28 characters where
each character's least significant 6 bits corresponds to the
ASCII 6- bit table. Is that about correct?
That is quite different from packing bits, using contigious bits,
as would be the expedient thing to do. You are in effect scattering
those 6 bits into 28 (8-bit) characters in a string. What makes it
difficult is that you are not using the bits converted to characters,
you are converting the bits to characters using the 6-bit table, and
then storing those characters in a string. The resulting bit patterns
will not be at all like the bits you started with. You will then
(quite probably) have to do the reverse somewhere down the line,
no? (Is conversion needed both ways?)
LFS
Ref: 6-bit table http://www.byte.com/art/9612/sec4/art4.htm
.
- Follow-Ups:
- Re: How do i change numerics into binary numbers?
- From: Howk013
- Re: How do i change numerics into binary numbers?
- References:
- Re: How do i change numerics into binary numbers?
- From: Rick Rothstein \(MVP - VB\)
- Re: How do i change numerics into binary numbers?
- From: mayayana
- Re: How do i change numerics into binary numbers?
- From: Rick Rothstein \(MVP - VB\)
- Re: How do i change numerics into binary numbers?
- From: Howk013
- Re: How do i change numerics into binary numbers?
- Prev by Date: Testking.co.uk study guides are the best for IT exams with 100% passing guarantee
- Next by Date: Re: color conversion
- Previous by thread: Re: How do i change numerics into binary numbers?
- Next by thread: Re: How do i change numerics into binary numbers?
- Index(es):
Relevant Pages
|