OpenCores
URL https://opencores.org/ocsvn/plasma/plasma/trunk

Subversion Repositories plasma

[/] [plasma/] [trunk/] [kernel/] [dlltest.c] - Blame information for rev 416

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 359 rhoads
// dlltest.c
2
// Compile this program with "make dlltest".  
3 416 rhoads
// Then ftp dlltest.axf to /flash/bin/dlltest.
4 359 rhoads
// Then from a telnet prompt type "dlltest".
5
#include "dll.h"
6
 
7 416 rhoads
int a, b=7;
8 359 rhoads
 
9 416 rhoads
int main(int argc, char *argv[])
10 359 rhoads
{
11 416 rhoads
   int i=40;
12
   printf("Hello from dlltest! a=%d b=%d\n", a, b);
13
   if(argc > 1)
14
      printf("arg=%s\n", argv[1]);
15
   printf("Enter a number\n");
16
   scanf("%d", &i);
17
   printf("i=%d\n", i);
18
   return 0;
19 359 rhoads
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.