Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
21
Task/Character-codes/TI-89-BASIC/character-codes.basic
Normal file
21
Task/Character-codes/TI-89-BASIC/character-codes.basic
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
Prgm
|
||||
Local k, s
|
||||
ClrIO
|
||||
Loop
|
||||
Disp "Press a key, or ON to exit."
|
||||
getKey() © clear buffer
|
||||
0 → k : While k = 0 : getKey() → k : EndWhile
|
||||
ClrIO
|
||||
If k ≥ 256 Then
|
||||
Disp "Not a character."
|
||||
Disp "Code: " & string(k)
|
||||
Else
|
||||
|
||||
char(k) → s ©
|
||||
© char() and ord() are inverses. ©
|
||||
Disp "Character: " & s ©
|
||||
Disp "Code: " & string(ord(s)) ©
|
||||
|
||||
EndIf
|
||||
EndLoop
|
||||
EndPrgm
|
||||
Loading…
Add table
Add a link
Reference in a new issue