Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: SirCmpwn on January 10, 2011, 05:33:36 pm

Title: HexFrom8xp
Post by: SirCmpwn on January 10, 2011, 05:33:36 pm
Hello,
I made this program in less than 5 minutes, by request.  Given an 8xp file, it extracts the hex and outputs it into a text file so you can enter it manually into a calculator.  If you find it useful, enjoy.  You may have to remove the BB6D if you want to use AsmComp( with it.
Code: [Select]
            StreamReader reader = new StreamReader(args[0]);
            StreamWriter writer = new StreamWriter(args[1]);

            reader.BaseStream.Seek(0x4A, SeekOrigin.Begin);

            while (reader.BaseStream.Position != reader.BaseStream.Length - 2)
            {
                byte b = (byte)reader.BaseStream.ReadByte();
                writer.Write("0123456789ABCDEF".Substring(b / 16, 1));
                writer.Write("0123456789ABCDEF".Substring(b % 16, 1));
            }
           
            reader.Close();
            writer.Close();
Title: Re: HexFrom8xp
Post by: yunhua98 on January 10, 2011, 05:34:22 pm
so its like this?
asmtools.omnimaga.org
anyway, nice job.  ;)
Title: Re: HexFrom8xp
Post by: AngelFish on January 10, 2011, 05:34:50 pm
/me loves Sircmpwn in a completely innocuous way
Title: Re: HexFrom8xp
Post by: SirCmpwn on January 10, 2011, 05:36:04 pm
so its like this?
asmtools.omnimaga.org
anyway, nice job.  ;)
Yes, and thanks.

/me loves Sircmpwn in a completely innocuous way
O.o
Title: Re: HexFrom8xp
Post by: AngelFish on January 10, 2011, 05:36:35 pm
I've been wanting one of these for a long time  :P
Title: Re: HexFrom8xp
Post by: SirCmpwn on January 10, 2011, 05:37:24 pm
Any other programs you are waiting on?  Just ask, I have a bunch of TI-related code sitting around that is easy to splice into a program.  I have code to modify most TI filetypes, too.
Title: Re: HexFrom8xp
Post by: AngelFish on January 10, 2011, 05:38:58 pm
Um, do you have programs to turn lead into gold, replicate Matlab on-calc, and vaporize annoying drivers make the sun shine? :p
Title: Re: HexFrom8xp
Post by: yunhua98 on January 10, 2011, 05:40:12 pm
well, maybe you can look into the Mirror of 38-IT and see if you and see the Programmer's Stone.  ;)  :P
Title: Re: HexFrom8xp
Post by: SirCmpwn on January 10, 2011, 05:40:37 pm
I can turn lead into gold and replicate Matlab, but I can't make the sun shine (although I can accelerate it's growth into a black hole in a few months).  The programmer's stone is in my project folder, but it's lacking some features.
Title: Re: HexFrom8xp
Post by: jnesselr on January 10, 2011, 05:52:15 pm
I can turn lead into gold and replicate Matlab, but I can't make the sun shine (although I can accelerate it's growth into a black hole in a few months).  The programmer's stone is in my project folder, but it's lacking some features.
I think we need to have a little talk about that black hole thing.  Now, is that OUR sun, or some other galaxies?
Title: Re: HexFrom8xp
Post by: SirCmpwn on January 10, 2011, 05:53:00 pm
The capability to do so does not mean the intent to do so.
Title: Re: HexFrom8xp
Post by: jnesselr on January 10, 2011, 05:53:42 pm
The capability to do so does not mean the intent to do so.
Oh, okay. How's that calc to wormhole project coming along?
Title: Re: HexFrom8xp
Post by: willrandship on January 10, 2011, 05:53:49 pm
soylent green is people :P

Well, those black holes had to come from somewhere....

Edit: double ninjad
Title: Re: HexFrom8xp
Post by: Deep Toaster on January 10, 2011, 06:18:41 pm
Win the game. I needz that.
/me lost again
Title: Re: HexFrom8xp
Post by: AngelFish on January 10, 2011, 06:20:34 pm
Um, is it supposed to freak out and freeze every time it's run?
Title: Re: HexFrom8xp
Post by: SirCmpwn on January 10, 2011, 06:20:51 pm
Nope, check you inputs.
Title: Re: HexFrom8xp
Post by: AngelFish on January 10, 2011, 06:21:18 pm
I'm dragging to file to the program. Should I run it from command line?
Title: Re: HexFrom8xp
Post by: Deep Toaster on January 10, 2011, 06:23:12 pm
You need to specify the .8xp and the output file.
Title: Re: HexFrom8xp
Post by: AngelFish on January 10, 2011, 06:24:30 pm
Got it and wow, that's a lot of code.
Title: Re: HexFrom8xp
Post by: FinaleTI on January 10, 2011, 07:28:28 pm
This is pretty cool, although I can make something to this effect on calc, so it's not that useful for me right now.
Of course, I'm sure one day my overzealous use of my link cable will render it broken, making this extremely useful.
Title: Re: HexFrom8xp
Post by: SirCmpwn on January 10, 2011, 07:37:09 pm
Like I said, this was by request to fulfill a single purpose.  I put it here in case someone finds it useful.
Title: Re: HexFrom8xp
Post by: DJ Omnimaga on January 10, 2011, 08:34:29 pm
This seems nice. Hopefully this is useful to some people.