add two avx instructions example & simple clear screen

This commit is contained in:
2020-12-17 17:49:05 +03:00
parent c790bcde1f
commit 1af9716058
4 changed files with 123 additions and 0 deletions

21
clr.c Normal file
View File

@@ -0,0 +1,21 @@
// make a simple "CLS"
#include <stdio.h>
#include <unistd.h>
void printstrings(const char *add){
for(int i = 0; i < 40; ++i)
printf("String %d - %s\n", i, add);
}
const char *x[] = {"first", "second", "third"};
int main(){
for(int i = 0; i < 3; ++i){
printf("\033c");
printstrings(x[i]);
sleep(1);
}
printf("\033c");
return 0;
}