84PCE:Syscalls:021890

From WikiTI
Jump to: navigation, search

Synopsis

Hypothesized Official Name: ShowResult

Syscall Address: 021890h

Displays a value on the homescreen and adds it to the entry history. If MathPrint is enabled, it will format the displayed result with MathPrint (unless otherwise stated).

Inputs

  • A = variable type
    • $00 - Displays string in HL, allows the user to recall it into the homescreen by pressing Enter on it. Does not apply MathPrint styling. Uses BC to determine which column to start from.
    • $01 - Displays string in HL, does not allow the user to recall it.
    • $02, $04 - Doesn't actually use the string in HL, nor the value of Ans, really don't know what's happening here.
    • $03, $05-$0B, $0F-$14, $16-$17 - Does not display anything.
    • $0C - Displays string in HL, allows the user to recall it into the homescreen by pressing Enter on it.
    • $0D - Displays string in HL, does not allow the user to recall it.
    • $0E - Displays "Error".
    • $15 - Displays "Done".
  • HL = null-terminated string - This is neither a token string nor a TI-ASCII string, so I'll go ahead and call it a "cursed string" - the majority of the codepoints are treated like tokens, but the rest ($10, $14, $1A, $1B, $20, $22, $27, $28, $29, $2B, $2C, $2D, $2E, $5D, $5E, $7B, $7D, $C1, $C4, $CE, $D7, $DB, $F5, $F6) are treated as TI-ASCII.
  • BC = length of string (in characters, not tokens).

Outputs

  • None

Destroys

  • All