Bit Rotation and Shifting: Simple Explanation!
HTML-код
- Опубликовано: 14 окт 2024
- What is bit-shifting and bit-rotation?
Find it out here!
Downloadlink TIA V16 (you need to register on the website):
support.indust...
Find a lot of content about TIA Portal on my channel!
New programming videos every tuesday and thursday.
If this video helped you, please consider helping me by joining my "GoFundMe" and donating a small amount to my cause. Link here:
www.gofundme.c...
That was great....... especially shifting for integer values.
That was very new to me
Very nice and clear example of bit shifting. Your video demonstration and simplicity is spot on especially for beginners. For me this video was just a really good refresher while already being familiar with them and their differences from working within the C/C++ languages. From a programming perspective they're easy to understand and use and I know most of their basic uses yet I would find it very useful to have a solid explanation of how they're used within Assembly.
As for their use within Assembly, I'm not referring to just their use from a programming perspective of using assembly to write programs but more on the lines of how they are used within the design of an assembler and its instruction set architecture.
Let's consider already having them implemented in the hardware as physical components within an ALU that can be invoked from OPCodes - Assembly Mnemonics - instructions. At this stage of the game everything is relatively good and straightforward.
Now having their functionality and being able to use them within the architecture is one thing, but knowing what their main purposes are or more to the lines of when they are needed and why, when and how you should use them is closer to the point.
For example, I can call them through existing opcodes within a simple 8-bit architect. The current implementation of the architect is taking 4 8-bit or words from each instruction cycle. The first byte is the OPCODE or Instruction, the 2 and 3rd bytes are two source lines that are fed to the registers, as well as other hardware devices such as the ALU, RAM, the Stack and I/O as input A and B, being SRC1, SRC2 respectively and the 4th byte is the destination DEST respectively.
I currently have the Stack Working and I'm in the process of implementing the "call" and "ret" instructions within the assembler to use the stack to push and pop addresses for procedure - subroutine calls. Implementing this shouldn't be to difficult as it's a simple stack frame.
However, having a good clean and clear explanation of what their main uses are at the ISA - to Assembly stage would be very beneficial and useful information just to add another tool into the toolbox. Something to this effect could make for a good video resource.
Its usefull to turm on something one after one by adressing output as qw with just one block. Thanks for continuance effort.🙏
Thank you))) perfect video. 3k people already subscribe, congratulations!! Waiting for TIA Thursday))
That's clean and easy to understand. Spot on.
and btw shifting Left by 1 position equals multiplying the value by 2 :D
Great explanation! Thanks!
Excelent explanation! Thankyou Sir!
Thank you! Best video!
Hi I do appreciate and like what you do. You help me with my Tia programming but I would like to know if you also do video on scada
Thanks
thank you..very good explanations
hi hegamurl. i'm reading some cpu arch doc. i'm beginner of Assembly Language. when i saw the rotate right operation, i can't think of any use for it, i google it , but only found how to implement it in high level language. it's there have secret between native system internal and bit rotate operation. I hope you can help me get some prompt information(🙇thanks).
good explanation....practicle example wound have been more efficient.
Good work,thanks for you videos.I had a question for you. I had S300 system,TIA 14,WinCC Advanced,and want 16 separate bits(discrete input signals) convert to Word format in DB. Please help me with this problem.Thank you.
Best!
In the future videos please assist in loop(LOOP) program and jump to label instruction(JL).
Thanks in advance
could you make a video about safety Plc
Best
Great to know
In ARM, we only have ROR, no ROL!!
I can tell he is German 😁, thanks a lot sir.
Not trying to hide it 😁 you are welcome and thank you!
Great explanation! Thanks!