如何在ti 83+/ti 84/ti 84+的ti汇编中显示a寄存器的值

How to display the value of the a register in ti assembly for ti 83+/ti 84/ti 84+

好吧,我将切入正题。 我正在寻找一种方法(bcall() 或其他方法)来使用 ti 83 plus 图形计算器的程序集显示当前保存在 a 寄存器中的值。

我不在乎方法有多复杂,只要我能做到。谢谢。

感谢 Tommylee2k,here 是一个不错的函数:

_DispHL: Displays the contents of the HL register right-justified in a field of five characters. For example, if HL = 125, output will be '1' '2' '5'.

你不需要重新发明轮子。

LD H,0
LD L,A
B_CALL(_DispHL)

警告:该子程序会破坏 AF、DE 和 HL。所以 PUSH 如果您还需要它们,请先使用它们。