Question

I'm programming my TI-84 in C with z88dk. I need to call things like normalcdf and Ztest. I know they can be called from ti-BASIC, but how do I call them from C or inline assembly?

Was it helpful?

Solution

In TI-84 assembly, you use the BCALL or B_CALL instruction to do a "system call" into the TI-84's ROM. This is usually used for simple I/O things (B_CALL PutS prints a string to the screen), but it could also be for more complicated mathematical routines (LD A,OPNormal; B_CALL BinOPExec computes the normalcdf( function).

Google "ti-84 bcall BinOPExec" for more information on B_CALL.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top