generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: I made a machine language "compiler" for TI-83/84s.

Previous Thread :: Next Thread 
thedoctorWeasel is not online. thedoctorWeasel
Joined: 02 Jan 2014
Total Posts: 675
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
OneTrueGodTheHolyCow is not online. OneTrueGodTheHolyCow
Joined: 24 Oct 2013
Total Posts: 9350
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 is not online. 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
thedoctorWeasel is not online. thedoctorWeasel
Joined: 02 Jan 2014
Total Posts: 675
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image