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

Revision 19, 286 bytes checked in by pntsvt00, 13 years ago (diff)

ora ho 2 sorgenti SPARC-V9, memory.hex e memory_hello.hex

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