| 1. |
Accessing Fixed Memory Locations? |
|
Answer» Embedded systems are OFTEN characterized by requiring the programmer to access a specific memory LOCATION. On a certain project it is required to set an integer variable at the absolute address 0x67a9 to the value 0xaa55. The compiler is a pure ANSI compiler. Write code to accomplish this task. A more OBSCURE approach is: *(int * const)(0x67a9) = 0xaa55;Embedded systems are often characterized by requiring the programmer to access a specific memory location. On a certain project it is required to set an integer variable at the absolute address 0x67a9 to the value 0xaa55. The compiler is a pure ANSI compiler. Write code to accomplish this task. A more obscure approach is: |
|