Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started 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.
-
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...
-
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). :)
-
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
-
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.
-
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/).
-
Thanks for the suggestion. I am looking into this!