hermanhermitage / videocoreiv

Tools and information for the Broadcom VideoCore IV (RaspberryPi)
824 stars 106 forks source link

rts opcode? #4

Closed harwoodr closed 11 years ago

harwoodr commented 11 years ago

On the "VideoCore IV Kernels under Linux" page, looking through the assembly for alpha.bin, the last instruction is "rti".

What is that?

Looking at the actual bits of that instruction, it would appear to be "b rd" where "rd" is "lr" or "r26"...

Am I correct?

hermanhermitage commented 11 years ago

Yes that's right. For historical reasons we had rts as a pseudonym for "b lr".

On the "VideoCore IV Kernels under Linux" page, looking through the assembly for alpha.bin, the last instruction is "rti".

What is that?

Looking at the actual bits of that instruction, it would appear to be "b rd" where "rd" is "lr" or "r26"...

Am I correct?

— Reply to this email directly or view it on GitHub.

harwoodr commented 11 years ago

Cool - thanks for the speedy reply - and for doing all this work in the first place.

I may take your work and stuff the opcodes into cpusim in order to get an emulated dev environment for the gpu code... If I do, I'll make sure to post it on GitHub and let you know.