mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-07 09:30:34 +00:00
54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
#include <tms9918.h>
|
|
|
|
#include "demo_screen1.h"
|
|
#include "demo_screen2.h"
|
|
#include "demo_balloon.h"
|
|
#include "demo_amiga_hand.h"
|
|
#include "demo_interrupt.h"
|
|
#include "demo_extvid.h"
|
|
#include "demo_blank.h"
|
|
#include "demo_end_of_frame.h"
|
|
|
|
void help() {
|
|
woz_puts(
|
|
"\rTMS9918 DEMOS\r"
|
|
"=============\r"
|
|
"1 SCREEN1\r"
|
|
"2 SCREEN2\r"
|
|
"3 BALLOON\r"
|
|
"A AMIGA HAND\r"
|
|
"I INTERRUPT\r"
|
|
"E FLIP EXT VIDEO\r"
|
|
"F TEST END-OF-FRAME\r"
|
|
"B BLANK ON/OFF\r"
|
|
"H HELP\r"
|
|
"0 EXITS\r\r"
|
|
);
|
|
}
|
|
|
|
void main() {
|
|
|
|
#ifdef APPLE1_JUKEBOX
|
|
apple1_eprom_init();
|
|
#endif
|
|
|
|
byte key = 'H';
|
|
for(;;) {
|
|
if(key == '1') demo_screen1();
|
|
else if(key == '2') demo_screen2();
|
|
else if(key == '3') demo_balloon();
|
|
else if(key == 'A') demo_amiga_hand();
|
|
else if(key == 'I') demo_interrupt();
|
|
else if(key == 'E') flip_external_input();
|
|
else if(key == 'F') demo_end_of_frame();
|
|
else if(key == 'B') flip_blank();
|
|
else if(key == 'H') help();
|
|
else if(key == '0') break;
|
|
else woz_putc(key);
|
|
|
|
key = apple1_getkey();
|
|
}
|
|
woz_puts("BYE\r");
|
|
woz_mon();
|
|
}
|