문제

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