Created
August 7, 2018 23:50
-
-
Save tschak909/6207eca75e6594f8868826d31ad90039 to your computer and use it in GitHub Desktop.
Atari 8-bit CC65 serial and TGI test harness.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Guaranteed to make the computer puke. */ | |
#include <tgi.h> | |
#include <serial.h> | |
static struct ser_params params = { | |
SER_BAUD_2400, | |
SER_BITS_8, | |
SER_STOP_1, | |
SER_PAR_NONE, | |
SER_HS_HW | |
}; | |
void main(void) | |
{ | |
tgi_install(tgi_static_stddrv); | |
tgi_init(); | |
tgi_clear(); | |
ser_install(atrrdev_ser); | |
ser_open(¶ms); | |
tgi_line(0,0,320,191); | |
for (;;) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment