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

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [tests/] [hello.c] - Blame information for rev 112

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

Line No. Rev Author Line
1 8 fafa1971
// Sample program that writes two words at a predefined address
2
 
3
int main() {
4
  unsigned long* address;
5
  address = (unsigned long*)0x0000CAC0;
6
  (*address) = 0xC1A0C1A0;  // First store
7
  address = (unsigned long*)0x0000CAC0;
8
  (*address) = 0xFABA1210;  // Second store
9
  return 0;
10
}
11
 

powered by: WebSVN 2.1.0

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