Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test.c « hp74x « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2fd84ac113ae86f3c385a5eebadbdf907761637d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
extern int led_putnum();
#define DELAY 900000
extern char strobe(),putDebugChar(),print(),putnum(); 
extern char foobar();
extern char breakpoint();

#define TESTSTUB 1

main()
{
  unsigned char x;
  char buf[20];

#if TESTIO
  strobe();
  outbyte ('\n');
  outbyte ('$');
  write (2, "Enter 5 characters... ", 24);
  read (0, buf, 5);
  print (buf);
  print ("\r\n");
  strobe ();
#endif
  
#if TESTSTUB
  print ("\r\nInit vectors...\r\n");
/***  set_debug_traps(); ***/
  print ("\r\nSet a breakpoint...\r\n");
  handle_exception();
/***  breakpoint(); ***/
#endif

  print ("\r\nTest foobar\r\n");
  foobar();
  /* whew, we made it */
  print ("\r\nDone...");
}

/*
 * FIXME: this is only hear so things will link.
 */	
int
puts(s)
     char *s;
{
  s++;
}