Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TC01

Pages: 1 ... 10 11 [12] 13 14 ... 24
166
Other Calc-Related Projects and Ideas / Re: Solar89 SDK
« on: September 27, 2010, 07:34:47 pm »
So, another update. I've gotten the "compiled token files" working. The interface for the seperate program is shown in the screenshot.

I decided it might be a good idea to define the file type in each token file (that's what "File type" is), so a file compiled for, say, the 85 could say "85P" in the VAR-LINK menu instead of 8XP. But I haven't implemented that in code yet.

This causes token initialization times to be near instantaneous- under a second. The downside? The size of a compiled token file is about double the size of the text file. So I left the code to parse text files in Solar89, giving users a choice between the larger and faster files or the slower and smaller files.

The actual tokenization process is still slow- hopefully that can be rectified with additional optimizations.

167
Calculator C / Re: Variable length strings in structures?
« on: September 27, 2010, 08:00:56 am »
Never mind, I realized:

a. How easy this is to do, and:
b. How it won't work for what I want (I can't get a program on the other end to unpack a file containing variable length strings...)

I feel silly now.

168
Ndless / Re: Ndless 1.7 for TI-Nspire
« on: September 26, 2010, 10:19:31 am »
Yeah, OS 1.7, not Ndless 1.7. The CAS Touchpad won't boot OS 1.7 for some unknown reason, nothing to do with Ndless (if I understand it correctly).

169
TI 68K / Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« on: September 25, 2010, 11:15:26 am »
Nice work so far (as always).

Are there bugs in the Titanium AMS versions (3.x) as well that this program could eventually solve?

170
Calculator C / Variable length strings in structures?
« on: September 21, 2010, 06:03:53 pm »
So- here's a C language question that reflects my lack of understanding of C- is it possible to define a variable-length string (aka character array) in a structure? (Specifically, in the GNU C implementation used by TIGCC/GCC4TI).

That's the basic question- here's why I want to know:

I have this structure defined in Solar89 (Comments should describe what each item is for):

Code: [Select]
typedef struct
{
    size_t chars; // How many chars are in the string making up the token
    int twoByteToken; // Whether or not the token is two bytes (0 or 1)
    unsigned char hex[2]; // The two bytes making up the token, or only hex[0] if it's a one-byte token
    char name[14]; // The name of the token (never more than 14 chars!)
} tokenInfo;

The way Solar89 currently works is that it reads in a text file and creates an array of these structures. This allows an editable database to store tokens, but it means the initialization will be slow.

I decided I could make it faster by making a second program that does the same thing and writes that array directly to a file. In theory (and correct me if I'm wrong- if I am this entire question is irrelevant) I could read the tokens in much faster by just doing something this (with size being the length of the file, or something like that):

Code: [Select]
fread(tokens, size, sizeof(tokenInfo), file);
Well, I tested the "token file compiler". The token file outputted is about twice the size as the text file is- for a 5000 byte file, it's around 11000 bytes. Now, this might be worth it if it made the process much faster- I haven't tested that though.

I suspect I could get rid of some space if I could shrink down tokenInfo.name when the token name was only "A" or "1" or "prgm"... etc. But I don't know how to do that.

Is this clear? If not, please just go back to the first paragraph for the actual question and try to ignore the context.

171
General Calculator Help / Re: Exporting/signing apps?
« on: September 19, 2010, 01:30:52 pm »
And there are three (probably more, actually) programs that can do it:

-Wappsign (TI's Flash Debugger, key included)
-Wabbitsign (ticalc.org, need to download key seperately)
-Rabbitsign (tiicalc.org, need to download key seperately)

Rabbitsign is probably the best program to use, though, because it can sign 68k flash apps and OSes for both.

172
General Calculator Help / Re: Exporting/signing apps?
« on: September 18, 2010, 11:59:02 pm »
Nope, it's a commandline program.

But it also serves as a linker for assembly programs, which Rabbitsign can't do.

173
General Calculator Help / Re: Exporting/signing apps?
« on: September 18, 2010, 11:47:09 pm »
That's Wappsign- by "SDK" I meant "Flash Debugger". I knew there was something else it was usually called.

It does what it's supposed to do. I doubt it works with anything but a z80 app- don't know if it would work if I tried to run the TI-73 app signing key through it (I don't have a TI-73 app source to try, anyway). It also has a GUI.

174
General Calculator Help / Re: Exporting/signing apps?
« on: September 18, 2010, 11:32:57 pm »
Signing apps means packaging an application in TI's *.8xk format, with a digital signature (the 0104 key) so it can be sent to a calc. If an app is not signed, the calculator won't accept it (and I think TI-Connect won't even try to send it?). An app would run fine unsigned on a calculator (if compiled there using Axe), but if it wasn't signed it couldn't be sent to a computer.

For instance, ZDS (Zilog Developer Studio, one way to make apps- the only example I can think of) produces *.hex files. This contains all the code needed for an application. But you cannot send it to a real calculator without signing it first.

The 0104 key is the only signing key TI actually released, and it can be found in their 83+/84+/73 SDK along with Wappsign, a program to do that.

But Rabbitsign, a community-made program, can also sign apps, along with z80 OSes, 68k apps, and 68k OSes- as long as you download all the keys from BrandonW.net.

Does that explain it?

175
Other / Re: TI Tablet PC
« on: September 15, 2010, 05:49:02 pm »
Yes, it does. You can get some programs for it on hpcalc.org... however, there is apparently no computer link software, so you have to manually enter programs like you would on a TI-80 or a TI-81.

176
TI 68K / Re: Utility script for 68k projects- needs name!
« on: September 14, 2010, 06:24:34 pm »
renamr68k it is.

I've uploaded it to the Cemetech archives, and to ticalc.org. I take it the Omnimaga database isn't finished yet, as there has been no announcement... so not there yet.

EDIT: It's available on Cemetech now.

177
Other / Re: TI Tablet PC
« on: September 13, 2010, 08:00:37 pm »
I don't own any non-TI graphing calcs myself- my dad has an HP-48 (SX, I think), though. Which does have assembly support.

I wonder if Casio calcs have as large a dev community as TI...

Well, there's casiocalc.org, which (unlike ticalc.org) is both a forum and a file archive. (And likewise, there's hpcalc.org for HP calcs, although it's not a forum). You could look around there.

178
TI 68K / Re: Utility script for 68k projects- needs name!
« on: September 13, 2010, 06:56:30 pm »
Kerm suggested "Renamr" on Cemetech- I amended it to renamr68k. Unless I (or someone else) can come up with a better name, that's what it will be called.

Indeed, the TI-68k Developer Utilities, integrated from GCC4TI 0.96 Beta 10 onwards, do not contain a tool for that purpose specifically.
Ah- I was a little worried something like it already existed and I was reinventing the wheel here.

179
TI 68K / renamr68k
« on: September 12, 2010, 06:09:13 pm »
In the process of making the latest version of Solar89, I got fed up with having to copy and paste *.89t and *.89p files and change their extensions to *.v2t and *.9xt. I wrote a Python script to do it for me called renamr68k.

What exactly am I talking about, you ask? (If you understood exactly what I just said, skip the next two paragraphs).

GCC4TI produces executable files for all three supported 68k calculators- the 92+, the 89, and the V200. However, if an assembly program needs external files, or is coupled with useful TI-BASIC programs (both of which are true for Solar89) and you only have one 68k calculator, you'll need to manually create duplicate versions for the other calculators. So if I need the text file "test.89t", I send it to my computer from my 89, make two copies, and change them to "test.9xt" and "test.v2t".

The same problem is true if you are making BASIC programs with your calculator and would like to support the other 68ks. Yes, in both cases a user could do it themselves, but they may not know that the file formats are identical on all three 68k calculators.

Hence, this Python (2.x) script. Credit to Kerm for coming up with the core of the name- renamr (which I expanded to renamr68k).

It has been submitted to Cemetech and ticalc.org... download here on Cemetech.

180
Other Calc-Related Projects and Ideas / Re: Solar89 SDK
« on: September 12, 2010, 05:31:48 pm »
Cool to see new version out :)

As for the special tokens, are you planning to add them in future versions or are they out of the question?
Yeah, I'm going to add them (as I said, most are listed on Misc. Tokens). I just was too lazy to do it now. :P

EDIT: Cemetech download up now.

Pages: 1 ... 10 11 [12] 13 14 ... 24