Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/Character-codes/M2000-Interpreter/character-codes.m2000
Normal file
22
Task/Character-codes/M2000-Interpreter/character-codes.m2000
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
\\ ANSI
|
||||
Print Asc("a")
|
||||
Print Chr$(Asc("a"))
|
||||
\\ Utf16-Le
|
||||
Print ChrCode("a")
|
||||
Print ChrCode$(ChrCode("a"))
|
||||
|
||||
\\ (,) is an empty array.
|
||||
|
||||
Function Codes(a$) {
|
||||
If Len(A$)=0 then =(,) : Exit
|
||||
Buffer Mem as byte*Len(a$)
|
||||
\\ Str$(string) return one byte character
|
||||
Return Mem, 0:=Str$(a$)
|
||||
Inventory Codes
|
||||
For i=0 to len(Mem)-1
|
||||
Append Codes, i:=Eval(Mem, i)
|
||||
Next i
|
||||
=Codes
|
||||
}
|
||||
Print Codes("abcd")
|
||||
\\ 97 98 99 100
|
||||
Loading…
Add table
Add a link
Reference in a new issue