ASM2EXEC & EXEC2ASM v1.0

By John Gilbertson

blackcap95@yahoo.com

July 30, 2003

These programs convert ASM programs to Exec strings (and vice versa.)  ASM2EXEC creates an Exec string named main\execstr from an ASM program; EXEC2ASM reverses this process, generating main\asmprgm from an Exec string. This is somewhat similar to the AsmComp( command on the TI-86.

Syntax:

asm2exec(“asmvar”)

exec2asm(“strvar”)

WARNING: These programs may generate ASM programs/Exec strings which may crash your calculator when run.  I am NOT responsible for data loss, hardware damage, etc. which might result from your use of these programs. Also, these programs have not been tested on a Voyage 200. The TI-BASIC part should work, but I'm not sure about Flib.

These programs require Flib 3.1, available at http://leiber.free.fr/ti/flib/index.html.

History:

1.0 Initial public release.

1.1 Corrected a bug in the progress display of exec2asm(.

1.2 Added code to enforce a 32kB limit on ASM programs which are put in to asm2exec(. This is done so as not to exceed the 64-kB limit on variable sizes imposed by the TI-OS. Exec strings take up twice as many bytes as the equivalent ASM program (plus two bytes for the string delimiters.) For example, the ASM program rpn_202 is 38,849 bytes. The Exec string equivalent would be 77,698 bytes long, exceeding the TI-OS limit by more than 12,000 bytes.

1.21 Changed the limit to 24 kB since this is the limit imposed by the TI-OS on Exec strings for execution in AMS 2.04 and higher.

1.3 asm2exec( now detects the ROM version andsets the appropriate ASM size limit (8,192 on AMS 2.03, 24,576 on AMS 2.04 and higher)