Author Topic: TO8XV - PC files to appvar converter  (Read 6232 times)

0 Members and 1 Guest are viewing this topic.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
TO8XV - PC files to appvar converter
« 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.
« Last Edit: December 28, 2016, 06:16:11 am by Keoni29 »
If you like my work: why not give me an internet?








Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: TO8XV - PC files to appvar converter
« Reply #1 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...
I am Bach.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TO8XV - PC files to appvar converter
« Reply #2 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). :)
« Last Edit: December 21, 2013, 04:06:26 pm by DJ Omnimaga »

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TO8XV - PC files to appvar converter
« Reply #3 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
« Last Edit: December 21, 2013, 05:37:22 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TO8XV - PC files to appvar converter
« Reply #4 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.
If you like my work: why not give me an internet?








Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6267
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: TO8XV - PC files to appvar converter
« Reply #5 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.
/e

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: TO8XV - PC files to appvar converter
« Reply #6 on: January 05, 2017, 11:44:09 am »
Thanks for the suggestion. I am looking into this!
If you like my work: why not give me an internet?