Revision 26,
322 bytes
checked in by pntsvt00, 14 years ago
(diff) |
checkpoint: baco con store consecutivi
|
Rev | Line | |
---|
[19] | 1 | // Sample program that writes two words at a predefined address |
---|
| 2 | |
---|
| 3 | int main() { |
---|
[26] | 4 | asm("mov 0x00, %fp \n"); |
---|
[20] | 5 | register unsigned long* address; |
---|
[19] | 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.