Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Keoni29 on December 21, 2013, 01:37:10 pm

Title: TO8XV - PC files to appvar converter
Post by: Keoni29 on December 21, 2013, 01:37:10 pm
Because I wanted to send some SID register dump files from my pc to my calculator for my TIMID soundchip I needed a way to convert a large amount of data to an appvar. I had to make a computer program to do it for me.

Syntax: to8xv [sourcefile] [appvar.8xv] [name(8 characters max)]

Source and executable included in zip file.


New python version with some additional options:
UPDATE:
Python version with some more commandline options. The ti83f.py module can be used in your own custom tools.
https://github.com/keoni29/to8xv

Planned features: multiple variables per .8xv file.
Title: Re: TO8XV - PC files to appvar converter
Post by: pimathbrainiac on December 21, 2013, 04:02:10 pm
I do have a question...

What type of files are allowed? .8xp files with raw data, or text files with ASCII Chars as data? If so, how do I input the data? .db $FF ?

I don't mean to be rude, but I want to use this. I just don't know how...
Title: Re: TO8XV - PC files to appvar converter
Post by: DJ Omnimaga on December 21, 2013, 04:04:40 pm
This seems nice. You should maybe upload it to the Omni download section as well (or rather post a link there since upload won't necessarily work). :)
Title: Re: TO8XV - PC files to appvar converter
Post by: Keoni29 on December 21, 2013, 05:27:52 pm
This program will take the raw data from any kind of file and put it in an appvar. The extention does not matter. If you have a power point presentation under 64k you want to convert to an appvar you can do that :) It will just copy all the bytes. The only thing my program does is generate the headers for the appvar and write it all to a new file.

To input .db $FF you get a hex editor and make a new file with $FF in it. Just one byte. Open the command prompt and change directory. Now run my program like this:
to8xv yourfile.ext appvar.8xv TESTVAR

Now try to send appvar.8xv to your calculator to test it :D
Title: Re: TO8XV - PC files to appvar converter
Post by: Keoni29 on December 28, 2016, 06:14:39 am
UPDATE:
Python version with some more commandline options. The ti83f.py module can be used in your own custom tools.
https://github.com/keoni29/to8xv

Planned features: multiple variables per .8xv file.
Title: Re: TO8XV - PC files to appvar converter
Post by: Eeems on January 02, 2017, 03:01:22 am
I would suggest adding a readme to the repository outlining how to use the command line tool. As well as outlining how to use the ti83f.py module in your own code.
Another good thing to add to your code would be docstrings (https://www.python.org/dev/peps/pep-0257/).
Title: Re: TO8XV - PC files to appvar converter
Post by: Keoni29 on January 05, 2017, 11:44:09 am
Thanks for the suggestion. I am looking into this!