// Switch pages // Prompt user
// Clear page 0 // Clear page 1
// Set to page 0
void main(void) |
|
{ | // Clear page 0 |
vidSetPage(0); | |
vidScroll(0, 0, 3, 11, 0, 0x07); | // Clear page 1 |
vidSetPage(1); | |
vidScroll(0, 0, 3, 11, 0, 0x07); | // Write to page 0 |
vidPutCursor(0, 0, 0); | |
vidPutStr("This is page 0", 0x70, 0); | // Write to page 1 |
vidPutCursor(0, 0, 1); | |
vidPutStr("This is page 1", 0x70, 1); |
|
// Prompt user
printf("\nPress any key to\nswitch to page 0"); _getch();
vidSetPage(0);
printf("\nPress any key to end"); _getch();
vidScroll(0, 0, 3, 11, 0, 0x07); vidSetPage(1); vidScroll(0, 0, 3, 11, 0, 0x07); vidSetPage(0);
}