PeterTillema / ICE

ICE Compiler for the TI-84 Plus CE
22 stars 1 forks source link

Output and Disp unexpected behaviour #115

Closed Xenoxis closed 5 years ago

Xenoxis commented 5 years ago

Hello, it seems that Output and Disp have an unexpected behaviour with variables. With that code :

:ClrHom
:0->A
:Disp A

or

:ClrHom
:0->A
:Output(1,1,A

It's output correctly the variable but shifted to the right (about 5-6 spaces characters). I've seen that there's already an issue about that, but i'm with the latest version of ICE Compiler (2.2.1) that i've found pre-compiled on Cemetech Archives.

PeterTillema commented 5 years ago

Yes, that's indeed the behaviour of these commands. It does that because it's kinda hard to know of how many digits a number exists, so it always uses 8 spaces minus the amount of digits in front of the string. (8 spaces because max number (16777215) has 8 digits).