Skip to content

Instantly share code, notes, and snippets.

@tschak909
Created August 7, 2018 23:50
Show Gist options
  • Save tschak909/6207eca75e6594f8868826d31ad90039 to your computer and use it in GitHub Desktop.
Save tschak909/6207eca75e6594f8868826d31ad90039 to your computer and use it in GitHub Desktop.
Atari 8-bit CC65 serial and TGI test harness.
/* 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(&params);
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