PowerPC - Trying to understand the rlwinm instruction
#5
(06-26-2021, 05:34 PM)Vega Wrote: Not trying to sound rude but did you not read the thread Seeky linked? The thread has a portion of info which links a pic that visually shows rotating bits vs shifting bits.

Also included in the thread (at the very beginning) is a link to the Logical Operations thread (which includes the basics of bits/binary) tut which you NEED to know before diving into bit rotation/shifting/etc.

rlwinm deals with bit/binary shifting/rotating plus logical ANDing. Once you understand those two main points, it will make sense.

Hope this all helps as rotation is a bit confusing for beginner PPC coders.

Yeah, I did. That's one of the main things I refered to when writing that attempted simplification, I had a very hard time understanding it though, because I thought that rlwinm was just for bit rotation, but it turns out to be for many different purposes. Even with the examples I was still very confused.
Reply


Messages In This Thread
RE: PowerPC - Trying to understand the rlwinm instruction - by JimmyKazakhstan - 06-26-2021, 06:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)