Help with assembler syntax for OUT
Posted: Tue Feb 02, 2010 4:01 pm
OK, so I have no software background at all. Just wanted to throw that out there before I ask what may be a silly question. I don't think I can post the exact example so I've modified it to suit my questions.
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.
Thanks, Shareef.
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
my_out_func:
ldw r11, dp[my_port]
out res[r11], r0
retsp 0