Re: A89: Re: Preliminary TI-GCC IDE update
[Prev][Next][Index][Thread]
Re: A89: Re: Preliminary TI-GCC IDE update
ok so if I declare Password as below won't I loose the effect of saving the
array between runnings of the program? TRUE?
In the documentation this is how it was shown (i think) to save info for
later use say when the program terminates and then is run again? so if I
declare it like that in the prog every time won't the array elements be all
set back to 0?
and yes i am using xor to create a simple form of encryption. It is not
supposed to be exponential or anything...
simply put (I think)
Encrypted Password=Password xor Key
so if Password=12 and Key =3 then
12 xor 3 = 15 (15 would be the number 12 encoded)
15 xor 3 = 12 (get the original number (12) back)
Thanks for your help
Greg
_________________________________
All parts should go together without forcing. You must remember that the
parts you are reassembling were disassembled by you. Therefore, if you can't
get them together again, there must be a reason. By all means, do not use a
hammer.
-- IBM maintenance manual, 1925
----- Original Message -----
From: "Mark Leverentz" <markleverentz@hotmail.com>
To: <assembly-89@lists.ticalc.org>
Sent: Monday, September 11, 2000 4:24 PM
Subject: Re: A89: Re: Preliminary TI-GCC IDE update
>
> There is a bug in TIGCC involving uninitialized static variables. I think
> you might want to declare password like this:
>
> static char Password[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
>
>
> Mark Leverentz
>
> >From: ComAsYuAre@aol.com
> >Reply-To: assembly-89@lists.ticalc.org
> >To: assembly-89@lists.ticalc.org
> >Subject: Re: A89: Re: Preliminary TI-GCC IDE update
> >Date: Mon, 11 Sep 2000 17:19:54 EDT
> >
> >
> >In a message dated 9/11/00 5:18:30 PM Eastern Daylight Time,
> >kormoc@ti-files.org writes:
> >
> > > At 9/11/00 05:09 PM, you wrote:
> > > > Password[I]^=Key; /*This line seems to create the problem */
> > > there is no exponentiation operator in c, you will have to write that
> > > function your self.
> >
> >Well in c the carrot refers to xor doesn't it? Seems like the line would
> >at
> >least compile even though it wouldn't do what he wanted it to do.
> >
> >
> >----
> >Jonah Cohen
> ><ComAsYuAre@aol.com>
> >http://jonah.ticalc.org
> >
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
Follow-Ups:
References: