source: XOpenSparcT1/trunk/sw/hello.c @ 20

Revision 20, 295 bytes checked in by pntsvt00, 14 years ago (diff)

modificato hello.c, ora flash.v legge da memory_hello.hex

Line 
1// Sample program that writes two words at a predefined address
2 
3int main() {
4  register 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}
Note: See TracBrowser for help on using the repository browser.