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

Subversion Repositories tv80

[/] [tv80/] [branches/] [s80_env_devel/] [tests/] [hello.c] - Blame information for rev 110

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ghutchis
 
2
sfr at 0x80 sim_ctl_port;
3
sfr at 0x81 msg_port;
4
sfr at 0x82 timeout_port;
5
 
6
void print (char *string)
7
{
8
  char *iter;
9
 
10
  iter = string;
11
  while (*iter != 0) {
12
    msg_port = *iter++;
13
  }
14
}
15
 
16
int main ()
17
{
18
  print ("Hello, world!\n");
19
 
20
  sim_ctl_port = 0x01;
21
  return 0;
22
}
23
 

powered by: WebSVN 2.1.0

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