Code: Select all
task main(){
RectOut(0, 0, 100, 64, DRAW_OPT_FILL_SHAPE);
TextOut(0, LCD_LINE2, "Hi.");
TextOut(0, LCD_LINE5+1, "Hi.");
TextOut(50, LCD_LINE5-1, "Hi.");
while(true);
}
Code: Select all
task main(){
RectOut(0, 0, 100, 64, DRAW_OPT_FILL_SHAPE);
TextOut(0, LCD_LINE2, "Hi.");
TextOut(0, LCD_LINE5+1, "Hi.");
TextOut(50, LCD_LINE5-1, "Hi.");
while(true);
}
Code: Select all
task main(){
RectOut(0, 0, 100, 64, DRAW_OPT_FILL_SHAPE);
TextOut(0, LCD_LINE2, "Hi.", DRAW_OPT_INVERT);
TextOut(0, LCD_LINE5+1, "Hi.", DRAW_OPT_LOGICAL_XOR|DRAW_OPT_INVERT);
TextOut(50, LCD_LINE5-1, "Hi.", DRAW_OPT_INVERT);
while(true);
}
Code: Select all
switch (LogicalMode)
{
case DRAW_LOGICAL_OR:
a2 |= (UWORD)a << offset;
break;
case DRAW_LOGICAL_AND:
a2 &= (UWORD)a << offset;
break;
case DRAW_LOGICAL_XOR:
a2 ^= (UWORD)a << offset;
break;
case DRAW_LOGICAL_COPY:
default:
a2 = (UWORD)a << offset;
break;
}
Code: Select all
mask = ~(0x00ff << offset);
font = (UWORD) a << offset;
switch (LogicalMode)
{
case DRAW_LOGICAL_OR:
a2 |= font;
break;
case DRAW_LOGICAL_AND:
a2 &= font | mask;
break;
case DRAW_LOGICAL_XOR:
a2 ^= font;
break;
case DRAW_LOGICAL_COPY:
default:
a2 = (a2 & mask) | font;
break;
}
Code: Select all
task main()
{
unsigned int i, s, f, diff;
s = CurrentTick();
for(i=0; i<1000; i++){
TextOut(0,LCD_LINE1,"Cicero scripsit:");
TextOut(0,LCD_LINE2,"Neque porro quisquam");
TextOut(0,LCD_LINE3,"est, qui dolorem");
TextOut(0,LCD_LINE4,"ipsum,quia dolor sit");
TextOut(0,LCD_LINE5,"amet, consectetur,");
TextOut(0,LCD_LINE6,"adipisci con velit-");
TextOut(0,LCD_LINE7,"Sed Cicero");
TextOut(0,LCD_LINE8,"erat iniuriam:");
TextOut(0,LCD_LINE1,"Neque porro quisquam");
TextOut(0,LCD_LINE2,"est, qui dolorem");
TextOut(0,LCD_LINE3,"ipsum,quia dolor sit");
TextOut(0,LCD_LINE4,"amet, consectetur,");
TextOut(0,LCD_LINE5,"adipisci con velit-");
TextOut(0,LCD_LINE6,"Sed Cicero");
TextOut(0,LCD_LINE7,"erat iniuriam:");
TextOut(0,LCD_LINE8,"Redundant est!");
}
f = CurrentTick();
diff = f - s;
ClearScreen();
NumOut(0,LCD_LINE1,diff);
while(true);
}
Users browsing this forum: Semrush [Bot] and 4 guests