TIC

From Ninerpedia
Jump to navigation Jump to search

TI/C C compiler for TI-99 and MYARC GENEVE 9640 computers by LGMA Products (Little Green Men Associates) written by Alan Beard. Note that library for tic was created by Clint Pulley, based on his Tiny-C compiler but recompiled with tic.

Examples

DIST1_C:

#include <stdio_h>
#include <video_h>

int f;
int g;

main() {
   vidmode(3);
   putchar(12);
   sprite(1,65,2,50,50);
   sprite(2,67,7,30,30);
   spmotn(1,5,0);
   spmotn(2,5,0);
   while (1) {
      f = spdist(1,2);
      g = spdrc(2,1,1);
      locate(24,5);
      printf("%d %d    ", f, g);
   }
}

DIST2_C:

#include <stdio_h>
#include <video_h>

int r;
int f;

main() {
   vidmode(3);
   putchar(12);
   sprite(1,65,2,50,50);
   spmotn(1,0,5);
   while (1) {
      r = spdrc(1,50,50);
      f = spdrc(1,50,50);
      locate(24,1);
      printf("%d %d    ", r, f);
   }
}

Links