Message Edited by CrasyCat on 2007-04-13 11:37 AM
asm(ba 0x0);is ok, but if I force the value of PC to an address of RAM with this line of asm
asm("ba 0x4000D000);there's an error message.It's:
Message Edited by Alban on 2006-11-29 03:27 PM
.
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.
asm("lwz R11,0x40000000"); // copy address into R11 asm("mtctr R11"); // load Count Register asm("blr ");// branch to contents of Count Register
hi, I am trying to follow your discussions here. And I placed a jmp assembly on my code (I need to jump to an address because of the bootloader)
asm(jmp 0x20000);
but it throws an error "Unknown assembler instruction mnemonic"
what could be the problem here?