Hi. I'm trying to write some lines of asm (as indicated by compiler guru)...but I'm newbie for asm an I have some big difficulties. I'm trying to implement the steps that Compiler Guru wrote.
CompilerGuru wrote:
For EPPC, I think the usual pattern is to load the destination address into a GPR, then transfer the GPR into either LR or CTR, and then branch via this SPR with a blr/bctr.
.
My code asm is:
asm("lwz R11,0x40000000"); // copy address into R11
asm("mtctr R11"); // load Count Register
asm("blr ");// branch to contents of Count RegisterBut I have the some problem. The error message is:
C:\......./ccEHaaaa.s: Assembler messages:
C:\......./ccEHaaaa.s:384: Error: operand out of range (0x40000000 is not between 0xffff8000 and 0x00007fff)
C:\......./ccEHaaaa.s:384: Error: syntax error; found `
I don't know how i can solve these problems...but I'm continuing to try, try and try waiting with confidence yours councils!
thanks a lot to everybody.
mudy