質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top