A character map for the squirt computer. It just removes the unnecessary stuff that ASCII has in its lower codepoints and replaces it with more common characters.
Character | N | y | a
Values | 6 b | 3 a | 2
Bits | 0110 1011 | 0011 1010 | 0010
Glue bit | ^ | ^ |
The nibbles 6b3a2 will print the string "Nya"
If a given nibble (X) has the "glue bit" (0x8) set, then the nibble before it (Y) would join together to make a value that I assume would be larger than 7. Both X and Y are girls. The bitwise formula is as follows:
(X & 7) | (Y << 3)
Here's a complete table of character mappings
Char | Val | Hex | Encoded
NUL | 0 | 00 | 0
SP | 1 | 01 | 1
a | 2 | 02 | 2
b | 3 | 03 | 3
c | 4 | 04 | 4
d | 5 | 05 | 5
e | 6 | 06 | 6
f | 7 | 07 | 7
g | 8 | 08 | 1 8
h | 9 | 09 | 1 9
i | 10 | 0a | 1 a
j | 11 | 0b | 1 b
k | 12 | 0c | 1 c
l | 13 | 0d | 1 d
m | 14 | 0e | 1 e
n | 15 | 0f | 1 f
o | 16 | 10 | 2 8
p | 17 | 11 | 2 9
q | 18 | 12 | 2 a
r | 19 | 13 | 2 b
s | 20 | 14 | 2 c
t | 21 | 15 | 2 d
u | 22 | 16 | 2 e
v | 23 | 17 | 2 f
w | 24 | 18 | 3 8
x | 25 | 19 | 3 9
y | 26 | 1a | 3 a
z | 27 | 1b | 3 b
0 | 28 | 1c | 3 c
1 | 29 | 1d | 3 d
2 | 30 | 1e | 3 e
3 | 31 | 1f | 3 f
4 | 32 | 20 | 4 8
5 | 33 | 21 | 4 9
6 | 34 | 22 | 4 a
7 | 35 | 23 | 4 b
8 | 36 | 24 | 4 c
9 | 37 | 25 | 4 d
A | 38 | 26 | 4 e
B | 39 | 27 | 4 f
C | 40 | 28 | 5 8
D | 41 | 29 | 5 9
E | 42 | 2a | 5 a
F | 43 | 2b | 5 b
G | 44 | 2c | 5 c
H | 45 | 2d | 5 d
I | 46 | 2e | 5 e
J | 47 | 2f | 5 f
K | 48 | 30 | 6 8
L | 49 | 31 | 6 9
M | 50 | 32 | 6 a
N | 51 | 33 | 6 b
O | 52 | 34 | 6 c
P | 53 | 35 | 6 d
Q | 54 | 36 | 6 e
R | 55 | 37 | 6 f
S | 56 | 38 | 7 8
T | 57 | 39 | 7 9
U | 58 | 3a | 7 a
V | 59 | 3b | 7 b
W | 60 | 3c | 7 c
X | 61 | 3d | 7 d
Y | 62 | 3e | 7 e
Z | 63 | 3f | 7 f
LF | 64 | 40 | 1 8 8
, | 65 | 41 | 1 8 9
. | 66 | 42 | 1 8 a
" | 67 | 43 | 1 8 b
' | 68 | 44 | 1 8 c
( | 69 | 45 | 1 8 d
) | 70 | 46 | 1 8 e
! | 71 | 47 | 1 8 f
? | 72 | 48 | 1 9 8
+ | 73 | 49 | 1 9 9
- | 74 | 4a | 1 9 a
* | 75 | 4b | 1 9 b
/ | 76 | 4c | 1 9 c
_ | 77 | 4d | 1 9 d
: | 78 | 4e | 1 9 e
; | 79 | 4f | 1 9 f
< | 80 | 50 | 1 a 8
> | 81 | 51 | 1 a 9
@ | 82 | 52 | 1 a a
# | 83 | 53 | 1 a b
$ | 84 | 54 | 1 a c
% | 85 | 55 | 1 a d
^ | 86 | 56 | 1 a e
& | 87 | 57 | 1 a f
\ | 88 | 58 | 1 b 8
| | 89 | 59 | 1 b 9
` | 90 | 5a | 1 b a
~ | 91 | 5b | 1 b b
[ | 92 | 5c | 1 b c
] | 93 | 5d | 1 b d
{ | 94 | 5e | 1 b e
} | 95 | 5f | 1 b f
ESC | 96 | 60 | 1 c 8
I kept ESC because I thought it was funny. Every codepoint from 0x61 to Infinity is a reserved codeblock called the "fuck off block" and is not a place of honor.
Last updated 25L06
Incoming: squirt, projects