Last change
on this file since 509 was
444,
checked in by satin@…, 7 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
379 bytes
|
Rev | Line | |
---|
[444] | 1 | extern int led_putnum(); |
---|
| 2 | extern char print(),putnum(); |
---|
| 3 | |
---|
| 4 | #include <stdio.h> |
---|
| 5 | |
---|
| 6 | main() |
---|
| 7 | { |
---|
| 8 | char buf[20]; |
---|
| 9 | |
---|
| 10 | outbyte ('&'); |
---|
| 11 | outbyte ('@'); |
---|
| 12 | outbyte ('$'); |
---|
| 13 | outbyte ('%'); |
---|
| 14 | print ("FooBar\r\n"); |
---|
| 15 | |
---|
| 16 | #if 0 |
---|
| 17 | write (2, "Enter 5 characters... ", 24); |
---|
| 18 | read (0, buf, 5); |
---|
| 19 | print (buf); |
---|
| 20 | print ("\r\n"); |
---|
| 21 | #endif |
---|
| 22 | |
---|
| 23 | /* whew, we made it */ |
---|
| 24 | print ("\r\nDone...\r\n"); |
---|
| 25 | fflush(stdout); |
---|
| 26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.