Inverted text function

master
Astoria 2 years ago
parent cf7558d06e
commit 067a4c5e0e

@ -5,6 +5,13 @@
int conid = 0x01;
char * strinv(char str[]) {
for(i = 0; i < strlen(str); i++){
str[i] = inv(str[i]);
}
return str;
}
void conprint(char str[], int x, int y, int mode){
con = (Console*)redbus;
rb_map_device(conid);

@ -2,4 +2,5 @@ int i;
int line;
int str_size;
Console* con;
char * strinv(char str[]);
void conprint(char str[], int x, int y, int mode);

@ -10,6 +10,7 @@
#define redbus 0x0300
#define IOXID 0x03
Iox* expand;
int* output;
@ -20,5 +21,5 @@ void main() {
rb_map_device(IOXID);
expand->out = 0;
output = (int*)expand->in;
conprint("very Nice", 40, 25, 3);
conprint(strinv("Huzzah, inverted text!"), 0, 0, 3);
}
Loading…
Cancel
Save