Firstly, can someone explain access to the data region using the data pointer? Is it fixed and all access to data is an offset from this pointer?
Secondly, in the following assembler, can you explain in layman's terms what is going on? It is performing a read-modify-write but I'm unsure of the exact syntax meaning. Assume my_port is a 32-bit port that I want to access individual bits of. I pass one argument to the function which is stored automatically in r0.
Code: Select all
ldw r11, dp[my_port]
out res[r11], r0