» Eintrag anzeigen
|
Autor: Lego Sprache: C (89) Erstellt am 16:27 - 20.06.2010
|
|
| Administration | Sie sind nicht der Autor dieses Eintrags. |
| Beschreibung: | main.c |
|
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 #include <os.h>
#include "utils.h"
asm(".string \"PRG\"");
int lasty=0;
int main(void) {
int f;
int print=0;
/*int time;
int temptime;*/
showSimpleDialogBox(
"Simple Test",
"ESC - Exit"
);
for (f = 0; f < 0x0F; ++f) {
fade(1);
WAIT("0x1FFFFF", "fade");
}
printchar(" .,-:;//;:=, ",0x0C);
printchar(" . :H@@@MM@M#H/.,+%;, ",0x0C);
printchar(" ,/X+ +M@@M@MM%=,-%HMMM@X/, ",0x0C);
printchar(" -+@MM; $M@@MH+-,;XMMMM@MMMM@+- ",0x0C);
printchar(" ;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/. ",0x0C);
printchar(" ,%MM@@MH ,@%= .---=-=:=,. ",0x0C);
printchar(" =@#@@@MX ., -%HX$$%%%+; ",0x0C);
printchar(" =-./@M@M$ .;@MMMM@MM: ",0x0C);
printchar(" X@/ -$MM/ .+MM@@@M$ ",0x0C);
printchar(",@M@H: :@: . =X#@@@@-",0x0C);
printchar(".H@@@@M@+, %MM+..%#$.",0x0C);
printchar(" /MMMM@MMH/. XM@MH; =; ",0x0C);
printchar(" /%+%$XHH@$= , .H@@@@MX, ",0x0C);
printchar(" .=--------. -%H.,@@@@@MX, ",0x0C);
printchar(" .%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%. ",0x0C);
printchar(" =XMMM@MM@MM#H;,-+HMM@M+ /MMMX= ",0x0C);
printchar(" =%@M@M#@$-.=$@MM@@@M; %M%= ",0x0C);
printchar(" ,:+$+-,/H#MMMMMMM@= =, ",0x0C);
printchar(" =++%%%%+/:-. ",0x0C);
lasty=0;
printchar("This was a triumph.",0x00);
printchar("I'm making a note here:",0x00);
printchar("HUGE SUCCESS!",0x00);
printchar("It's hard to overstate",0x00);
printchar("my satisfaction.",0x00);
printchar("Aperature Science:",0x00);
printchar("We do what we must",0x00);
printchar("because we can.",0x00);
printchar("For the good of all of us",0x00);
printchar("Except the ones who are dead.",0x00);
lasty=lasty+12;
printchar("But there's no sense crying",0x00);
printchar("over every mistake;",0x00);
printchar("You just keep on trying",0x00);
printchar("'till you run out of cake",0x00);
printchar("And the Science gets done",0x00);
printchar("and you make a neat gun",0x00);
printchar("for the people who are",0x00);
printchar("still alive.",0x00);
WAIT("0x1FFFFF", "printchar");
/*time = * (volatile unsigned*) 0x90090000;
temptime = time;
while (time < temptime+3)
{
time = * (volatile unsigned*) 0x90090000;
}*/
sleep(20);
clearScreen();
printchar(" .,---. ",0x0C);
printchar(" ,/XM#MMMX;, ",0x0C);
printchar(" -%##########M%, ",0x0C);
printchar(" -@######% $###@= ",0x0C);
printchar(" .,--, -H#######$ $###M: ",0x0C);
printchar(" ,;$M###MMX; .;##########$;HM###X=",0x0C);
printchar(" ,/@##########H= ;################+",0x0C);
printchar("-+#############M/, %##############+",0x0C);
printchar("%M###############= /##############:",0x0C);
printchar("H################ .M#############;.",0x0C);
printchar("@###############M ,@###########M:. ",0x0C);
printchar("X################, -$=X#######@: ",0x0C);
printchar("/@##################%- +######$- ",0x0C);
printchar(".;##################X .X#####+, ",0x0C);
printchar(" .;H################/ -X####+. ",0x0C);
printchar(" ,;X##############, .MM/ ",0x0C);
printchar(" ,:+$H@M#######M#$- .$$= ",0x0C);
printchar(" .,-=;+$@###X: ;/=. ",0x0C);
printchar(" .,/X$; .::, ",0x0C);
printchar(" ., .. ",0x0C);
lasty=0;
printchar("I'm not even angry.",0x00);
printchar("I'm being so sincere right now.",0x00);
printchar("Even though you broke my heart.",0x00);
printchar("And killed me.",0x00);
printchar("And tore me to pieces,",0x00);
printchar("And threw every piece into a fire.",0x00);
printchar("As they burned it hurt because",0x00);
printchar("I was so happy for you.",0x00);
printchar("Now these points of data",0x00);
printchar("make a beautiful line.",0x00);
printchar("And we're out of beta",0x00);
printchar("We're releasing on time.",0x00);
printchar("So I'm GLaD I got burned.",0x00);
printchar("Think of all the things we learned.",0x00);
printchar("For the people who are",0x00);
printchar("Still alive.",0x00);
WAIT("0x1FFFFF", "printchar");
while (!isKeyPressed(KEY_NSPIRE_ESC)) {
if (isKeyPressed(KEY_NSPIRE_H)) {
showSimpleDialogBox(
"Simple Test",
"ESC - Exit"
);
clearScreen();
}
if (isKeyPressed(KEY_NSPIRE_S) && print != 1) {
print=1;
}
if (isKeyPressed(KEY_NSPIRE_C)) {
clearScreen();
print=0;
}
}
return 0;
} |
|