diff options
author | Ranjith Kumaran <ranjith@cygnus.com> | 2000-03-17 22:48:54 +0000 |
---|---|---|
committer | Ranjith Kumaran <ranjith@cygnus.com> | 2000-03-17 22:48:54 +0000 |
commit | 03261851a10dd2d6900a0a00a7515a0a46fb5d76 (patch) | |
tree | 7c22ac6cbbc99fd5cd1b5426853be8d4fd7bfcf1 /libgloss/hp74x/test.c | |
parent | fae4c299f14fc23e2829c8656992eba21f79242a (diff) | |
download | cygnal-03261851a10dd2d6900a0a00a7515a0a46fb5d76.tar.gz cygnal-03261851a10dd2d6900a0a00a7515a0a46fb5d76.tar.bz2 cygnal-03261851a10dd2d6900a0a00a7515a0a46fb5d76.zip |
20000317 sourceware import
Diffstat (limited to 'libgloss/hp74x/test.c')
-rw-r--r-- | libgloss/hp74x/test.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libgloss/hp74x/test.c b/libgloss/hp74x/test.c new file mode 100644 index 000000000..2fd84ac11 --- /dev/null +++ b/libgloss/hp74x/test.c @@ -0,0 +1,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++; +} |