source:
XOpenSparcT1/trunk/sw/hello.c
@
20
Revision 20, 295 bytes checked in by pntsvt00, 14 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[19] | 1 | // Sample program that writes two words at a predefined address |
2 | ||
3 | int main() { | |
[20] | 4 | register unsigned long* address; |
[19] | 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.