Difference between revisions of "TIC"

From Ninerpedia
Jump to navigation Jump to search
m
(Examples)
 
Line 1: Line 1:
'''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 [[c99|Tiny-C compiler]] but recompiled with tic.
'''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 [[c99|Tiny-C compiler]] but recompiled with tic.
== Examples ==
DIST1_C:
<pre>
#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);
  }
}
</pre>
DIST2_C:
<pre>
#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);
  }
}
</pre>


== Links ==
== Links ==

Latest revision as of 19:31, 27 February 2026

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