June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
4
Task/Character-codes/BASIC/character-codes-5.basic
Normal file
4
Task/Character-codes/BASIC/character-codes-5.basic
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
10 REM THE ZX81 USES ITS OWN NON-ASCII CHARACTER SET
|
||||
20 REM WHICH DOES NOT INCLUDE LOWER-CASE LETTERS
|
||||
30 PRINT CODE "A"
|
||||
40 PRINT CHR$ 38
|
||||
4
Task/Character-codes/BASIC/character-codes-6.basic
Normal file
4
Task/Character-codes/BASIC/character-codes-6.basic
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
10 CH = 65: REM IN PETSCII CODE FOR 'A' IS 65
|
||||
20 D$ = "B": REM D$ HOLDS THE CHARACTER 'B'
|
||||
30 PRINT CHR$(CH): REM THIS PRINTS 'A'
|
||||
40 PRINT ASC(D$): REM THIS PRINTS 66
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import extensions.
|
||||
|
||||
program =
|
||||
public program =
|
||||
[
|
||||
var ch := $97.
|
||||
|
||||
|
|
|
|||
2
Task/Character-codes/HolyC/character-codes.holyc
Normal file
2
Task/Character-codes/HolyC/character-codes.holyc
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Print("%d\n", 'a'); /* prints "97" */
|
||||
Print("%c\n", 97); /* prints "a" */
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
println(int('a'))
|
||||
println(char(97))
|
||||
println(Int('a'))
|
||||
println(Char(97))
|
||||
|
|
|
|||
5
Task/Character-codes/Red/character-codes.red
Normal file
5
Task/Character-codes/Red/character-codes.red
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Red []
|
||||
print to-integer first "a" ;; -> 97
|
||||
print to-integer #"a" ;; -> 97
|
||||
print to-binary "a" ;; -> #{61}
|
||||
print to-char 97 ;; -> a
|
||||
5
Task/Character-codes/Stata/character-codes-1.stata
Normal file
5
Task/Character-codes/Stata/character-codes-1.stata
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
: ascii("α")
|
||||
1 2
|
||||
+-------------+
|
||||
1 | 206 177 |
|
||||
+-------------+
|
||||
5
Task/Character-codes/Stata/character-codes-2.stata
Normal file
5
Task/Character-codes/Stata/character-codes-2.stata
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
: ascii("We the People")
|
||||
1 2 3 4 5 6 7 8 9 10 11 12 13
|
||||
+-------------------------------------------------------------------------------+
|
||||
1 | 87 101 32 116 104 101 32 80 101 111 112 108 101 |
|
||||
+-------------------------------------------------------------------------------+
|
||||
2
Task/Character-codes/Stata/character-codes-3.stata
Normal file
2
Task/Character-codes/Stata/character-codes-3.stata
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
: char((73,32,115,116,97,110,100,32,104,101,114,101))
|
||||
I stand here
|
||||
Loading…
Add table
Add a link
Reference in a new issue