TI-BASIC:Asmcomp
Command Summary
Compresses an assembly program in hexadecimal form into binary form.
Command Syntax
Asm(prgmORIGINAL,prgmRESULT)
Menu Location
This command is only found in the catalog. Press:
- 2nd CATALOG to access the command catalog.
- Scroll down to AsmComp( and press enter.
TI-83+/84+/SE/CSE/CE
(not available on the regular TI-83)
2 bytes
This command is used to compress an assembly program written using AsmPrgm into an "assembled" assembly program. This will make the program about twice as small, and protect it from being edited, in addition to making execution faster.
To use AsmComp(, give it the ASCII represented assembly program, followed by the name you want the assembled program to have. That name can't be already taken. Since it's not easy to rename an assembled assembly program, if you want to write a program called prgmGAME, you type the ASCII represented code in a program with a different name (e.g. GAMEA) and then do AsmComp(prgmGAMEA,prgmGAME).
Assembly programs can be run with Asm(.
Error Conditions
- ERR:DUPLICATE is thrown if prgmRESULT is an already used program name;
- ERR:INVALID is thrown if prgmORIGINAL doesn't start with AsmPrgm;
- ERR:SYNTAX is thrown if prgmORIGINAL is not an assembly program.