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

Subversion Repositories tv80

[/] [tv80/] [branches/] [restruc2/] [tests/] [hello.c] - Rev 47

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

 
sfr at 0x80 sim_ctl_port;
sfr at 0x81 msg_port;
sfr at 0x82 timeout_port;
 
void print (char *string)
{
  char *iter;
 
  iter = string;
  while (*iter != 0) {
    msg_port = *iter++;
  }
}
 
int main ()
{
  print ("Hello, world!\n");
 
  sim_ctl_port = 0x01;
  return 0;
}
 
 

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

powered by: WebSVN 2.1.0

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