URL
https://opencores.org/ocsvn/zipcpu/zipcpu/trunk
[/] [zipcpu/] [trunk/] [bench/] [cpp/] [helloworld.c] - Blame information for rev 206
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
204 |
dgisselq |
////////////////////////////////////////////////////////////////////////////////
|
2 |
|
|
//
|
3 |
|
|
// Filename: helloworld.c
|
4 |
|
|
//
|
5 |
|
|
// Project: Zip CPU -- a small, lightweight, RISC CPU soft core
|
6 |
|
|
//
|
7 |
|
|
// Purpose: The original Helllo World program. If everything works, this
|
8 |
|
|
// will print Hello World to the UART, and then halt the CPU--if
|
9 |
|
|
// run with no O/S.
|
10 |
|
|
//
|
11 |
|
|
//
|
12 |
|
|
// Creator: Dan Gisselquist, Ph.D.
|
13 |
|
|
// Gisselquist Technology, LLC
|
14 |
|
|
//
|
15 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
16 |
|
|
//
|
17 |
|
|
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
|
18 |
|
|
//
|
19 |
|
|
// This program is free software (firmware): you can redistribute it and/or
|
20 |
|
|
// modify it under the terms of the GNU General Public License as published
|
21 |
|
|
// by the Free Software Foundation, either version 3 of the License, or (at
|
22 |
|
|
// your option) any later version.
|
23 |
|
|
//
|
24 |
|
|
// This program is distributed in the hope that it will be useful, but WITHOUT
|
25 |
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
26 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
27 |
|
|
// for more details.
|
28 |
|
|
//
|
29 |
|
|
// License: GPL, v3, as defined and found on www.gnu.org,
|
30 |
|
|
// http://www.gnu.org/licenses/gpl.html
|
31 |
|
|
//
|
32 |
|
|
//
|
33 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
34 |
|
|
//
|
35 |
|
|
//
|
36 |
|
|
#include <stdio.h>
|
37 |
|
|
|
38 |
|
|
int main(int argc, char **argv) {
|
39 |
|
|
printf("Hello, World!\r\n");
|
40 |
|
|
return 0;
|
41 |
|
|
}
|
42 |
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.