[docs] Replace cyrillic 'с' with latin 'c' in register names
[kolibrios.git] / programs / other / rainbow / colors.gawk
blob2cb4dde4a48fdfad8f9ea380cfd661a36898aaa9
1 BEGIN {
5         cnt++
6         names[cnt] = $1
7         colors[cnt] = $2
10 END {
11         printf "; Autogenerated from colors.txt, do not edit this file!\n"
12         printf "; gawk -f colors.gawk colors.txt > colors.asm\n\n"
13         printf "colors dd "
14         printf colors[1]
15         for (i=2; i<=cnt; i++) {
16                 printf ", %s", colors[i]
17         }
19         printf "\n\n"
21         printf "names dw "
22         printf names[1]
23         for (i=2; i<=cnt; i++) {
24                 printf ", %s", names[i]
25         }
27         printf "\n\n"
29         for (i=1; i<=cnt; i++) {
30                 printf "%s db %d,'%s'\n", names[i], length(names[i]), names[i]
31         }