Re: argh ! 255 charcters only on the TI-92


[Prev][Next][Index][Thread]

Re: argh ! 255 charcters only on the TI-92



Assuming 0 is the char we can't create...
1) Convert every 7 bits (ie use 128-255)
2) Use escaping to emulate the other character.
For example: If 255 is the escape, then 255 1 represents 0 and 255 255
represents 255.  Then use a little parsing to determine what the char is
when decoding... that is, if 255 is read, then read the next and interpret
both as a single byte.

At 23:34 12/6/96 +0100, Labaye Denis wrote:
>Hi
>
>I need to convert a sequence of bits into string file.
>
>1) I convert 8 bits into decimal number
>2) I convert decimal number into character (with char(x))
>BUT there is only 255 char so I have to manage the 256th in a different
>way.
>
>Someone have a simple solution ? (it could be using something different
>that string or something with Fargo)
>
>Denis
>
>
+--------------------------------------------------------+
| Peter Kolbus                           +1.810.474.0872 |
| ae607@detroit.freenet.org      #include <disclaimer.h> |
+--------------------------------------------------------+
| Due to financial difficulties, the light at the end of |
|   the tunnel has been permanently disconnected.        |
|                                                        |
| The packet goes out the card, into the copper, out     |
|   the router, onto the fiber, across the world, thru   |
|   the copper............       NOTHING BUT NET.        |
|                                                        |
| ***Written using 100% recycled electrons***            |
|         *** (80% post-consumer) ***                    |
+--------------------------------------------------------+