|
| 08 Jan 2014 10:37 PM |
I say "compiler" because all it's really doing it packaging the machine code in a way that the calculator can read it.
You write the machine code in hex. So like, you could write:
219F9D EF0A45 EF2E45 C9 48656C6C6F2C20576F726C642100
And save it as "hex.txt" then run: z80hex --mono --asc hex.txt hello "i made this"
And it will generate a "HELLO.8xp" file that when moved to the calculator and ran, will display "Hello, World!".
You can also dump the machine language from the file by running "z80hex --dump HELLO.8xp".
The "--mono" switch can be changed to "--color" if you have the TI-84+CSE (the one with the color screen). You can change the "--asc" switch to "--bin" if your hex file is a binary file and not an ASCII one.
Here's the "Hello, World" for the TI-84+CSE:
2112A6 EF0145 C9 48656C6C6F2C20576F726C642100
It's important to note that the machine code for the TI-84s with color and the ones without are slightly different. You can view the differences by looking at the TI-84+CSE include file.
If any of you noticed, in the catalog of your calc, you have an "Asm(", "AsmComp(", and an "AsmPrgm" (or "Asm84CPrgm") commands. These basically do the same thing. They let you write and "compile" machine code on your calculator.
My application I made does the same thing. It's also written in simplistic C++ that uses all standard libraries, so it should easily be compiled on any OS.
Also, note, that it is not compiled. If you do decide to try it, you can compile it simply by running "build.bat" on Windows or "build.sh" on Linux. These will only work if you have g++ installed.
This was actually really difficult to make, because I had to figure out how to generate a file for the TI-84s with the appropriate checksums and all that jazz. It was frustrated but I got it to work.
Anyways, if you want to try it, you can. It's on my Google Drive. /file/d/0B4jc3uKzHHNXeFUxTkpaWTdtYVk/edit?usp=sharing |
|
|
| Report Abuse |
|
|
| 09 Jan 2014 12:42 PM |
| Like I said before, why don't you post this on a KoolKalkulatorKids forum instead of on ROBLOX? |
|
|
| Report Abuse |
|
PhokiusV3
|
  |
| Joined: 07 May 2013 |
| Total Posts: 805 |
|
|
| 09 Jan 2014 02:28 PM |
I've always wanted a ti-83/84 for my programming and assembler skills...
Too bad I am stuck with a casio fx-9750g plus... What a piece of s^*t! |
|
|
| Report Abuse |
|
|
| 09 Jan 2014 05:00 PM |
"Too bad I am stuck with a casio fx-9750g plus... What a piece of s^*t!"
If you get a TI-84, you should get the new TI-84 with the color screen. It's way better and Assembly and TI-BASIC code is very easily ported.
|
|
|
| Report Abuse |
|