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

Revision 26, 322 bytes checked in by pntsvt00, 14 years ago (diff)

checkpoint: baco con store consecutivi

Line 
1// Sample program that writes two words at a predefined address
2 
3int main() {
4  asm("mov 0x00, %fp \n");
5  register unsigned long* address;
6  address = (unsigned long*)0x0000CAC0;
7  (*address) = 0xC1A0C1A0;  // First store
8  address = (unsigned long*)0x0000CAC0;
9  (*address) = 0xFABA1210;  // Second store
10  return 0;
11}
Note: See TracBrowser for help on using the repository browser.