commit 2d8c21d

chld  ·  2026-07-22 01:12:43 +0000 UTC
parent a546783
add (fixed) eikimaker
3 files changed,  +54, -0
+1, -0
1@@ -4,3 +4,4 @@
2 *.so
3 *.a
4 cotton
5+*.cot
+42, -0
 1@@ -0,0 +1,42 @@
 2+#include <stdio.h>
 3+#include <stdint.h>
 4+#include <string.h>
 5+
 6+int main(void){
 7+	fprintf(stderr, "char:");
 8+
 9+	char ch;
10+	scanf(" %c", &ch);
11+
12+	printf("\n# for a pixel and . for null\n");
13+
14+	// enuidkefnoieriovr4jeojerovrjoijoielklkbyunhuhuinhuirfvgtyj
15+	char rows[8][7];
16+
17+	for(int i=0; i<8; i++){
18+		do {
19+			fprintf(stderr, "%d ", i);
20+			scanf(" %s", &rows[i]);
21+		} while (strlen(rows[i]) != 6);
22+	}
23+	printf("\n[ '%c' ] = {\n", ch);
24+
25+	for(int row=0; row <8; ++row){
26+		uint8_t value=0;
27+
28+		for(int px=0; px<6; px++){
29+			if(rows[row][px]=='#'){
30+				value |=1 << px;
31+			}
32+
33+		}
34+		printf("\t0b");
35+		// No %b. had to search this one up
36+		for(int b=7; b>=0; b--){
37+			printf("%d", (value >> b) & 1);
38+		}
39+		printf(",\n");
40+	}
41+
42+	printf("},\n");
43+}
+11, -0
 1@@ -756,6 +756,17 @@ static const uint8_t EIKI_FONT[256][FONT_HEIGHT] = {
 2     0b00000000,
 3 },
 4 
 5+[ '#' ] = {
 6+        0b00010010,
 7+        0b00010010,
 8+        0b00111111,
 9+        0b00010010,
10+        0b00010010,
11+        0b00111111,
12+        0b00010010,
13+        0b00010010,
14+},
15+
16 };
17 
18 #endif