Bit Rotation and Shifting: Simple Explanation!

  Рет қаралды 25,213

Hegamurl

Hegamurl

Күн бұрын

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...

Пікірлер: 27
@simonmax3901
@simonmax3901 4 жыл бұрын
That was great....... especially shifting for integer values. That was very new to me
@messizqin9603
@messizqin9603 3 жыл бұрын
That's clean and easy to understand. Spot on.
@skilz8098
@skilz8098 Жыл бұрын
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.
@saeed2tube
@saeed2tube 4 жыл бұрын
Its usefull to turm on something one after one by adressing output as qw with just one block. Thanks for continuance effort.🙏
@Vozzhd
@Vozzhd 4 жыл бұрын
Thank you))) perfect video. 3k people already subscribe, congratulations!! Waiting for TIA Thursday))
@sarahlabidi6558
@sarahlabidi6558 Жыл бұрын
Great explanation! Thanks!
@framos9991
@framos9991 Жыл бұрын
Thank you! Best video!
@muhammadferdiansyah2473
@muhammadferdiansyah2473 Жыл бұрын
Excelent explanation! Thankyou Sir!
@dukenuke2690
@dukenuke2690 4 жыл бұрын
and btw shifting Left by 1 position equals multiplying the value by 2 :D
@prabhjotsingh6731
@prabhjotsingh6731 4 жыл бұрын
thank you..very good explanations
@ndongminkolandry4443
@ndongminkolandry4443 4 жыл бұрын
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
@mahdidavari8094
@mahdidavari8094 Жыл бұрын
Thanks
@danieltrigo2928
@danieltrigo2928 6 күн бұрын
Why do we need to shift to the left the bits? what is the purpose on this?
@patilprashanth1
@patilprashanth1 4 жыл бұрын
good explanation....practicle example wound have been more efficient.
@simonmax3901
@simonmax3901 4 жыл бұрын
In the future videos please assist in loop(LOOP) program and jump to label instruction(JL). Thanks in advance
@Motoko-en3kd
@Motoko-en3kd 2 жыл бұрын
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).
@muhammadkhalid8374
@muhammadkhalid8374 4 жыл бұрын
Great to know
@lordcuc1
@lordcuc1 4 жыл бұрын
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.
@johanneskampfl6794
@johanneskampfl6794 2 жыл бұрын
Best!
@mlikiachref5228
@mlikiachref5228 4 жыл бұрын
could you make a video about safety Plc
@johanneskampfl6794
@johanneskampfl6794 2 жыл бұрын
Best
@rtlinsn5085
@rtlinsn5085 3 жыл бұрын
In ARM, we only have ROR, no ROL!!
@abdallahsani5658
@abdallahsani5658 3 жыл бұрын
I can tell he is German 😁, thanks a lot sir.
@hegamurl7434
@hegamurl7434 3 жыл бұрын
Not trying to hide it 😁 you are welcome and thank you!
@FraztheWizard
@FraztheWizard 2 жыл бұрын
Great explanation! Thanks!
TIA Portal: Bit Rotation and Shifting
21:46
Hegamurl
Рет қаралды 45 М.
TIA Portal: Watch Tables vs. Force Table; Differences
19:22
Hegamurl
Рет қаралды 12 М.
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 59 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,9 МЛН
Cool Parenting Gadget Against Mosquitos! 🦟👶 #gen
00:21
TheSoul Music Family
Рет қаралды 32 МЛН
How do I access a single bit?
11:07
Jacob Sorber
Рет қаралды 21 М.
Data Types and How to know what you need! (TIA Portal)
23:08
Hegamurl
Рет қаралды 110 М.
TIA Portal: HMI/TP Integration (Human Machine Interface)
28:15
Algorithms: Bit Manipulation
9:06
HackerRank
Рет қаралды 538 М.
Measure and control the Conveyor Movement using Encoder as feedback device . S7 1200 PLC Project
8:29
PLC Programming Tutorials Tips and Tricks
Рет қаралды 62 М.
TIA Portal: Traces for Troubleshooting
16:26
Hegamurl
Рет қаралды 33 М.
TIA Portal: Analog Processing / NORM_X and SCALE_X
25:29
Hegamurl
Рет қаралды 171 М.
TIA Portal: Libraries - Share program parts with other people
15:52
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,4 МЛН