Assembly Language Programming Tutorial – 45 – SHL Instruction

All references in this video came from:
Assembly Language for x86 Processors (6th Edition) http://goo.gl/n3ApG

Brought to you by http://www.rasmurtech.com/

The Rasmurtech Community: http://goo.gl/mt6OzH

Rasim from Rasmurtech.com give us another tutorial on Assembly Language Programming . In this tutorial Rasim shows us how to use the SHL Instruction.

Download:

emu8086: http://goo.gl/AXgw2u

Binary to Decimal to Hexadecimal Converter: http://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html

ASCII TABLE: http://goo.gl/qDqYDw

Wiki Answsers: Explain 8086 flag register http://wiki.answers.com/Q/Explain_8086_flag_register

Google Plus: https://plus.google.com/112317437942092121047

Twitter: https://twitter.com/rasmurtech

Facebook: https://www.facebook.com/Rasmurtech‎

Instagram: http://instagram.com/rasmurtech

Comments

n o i d says:

Thanks!

ayush gupta says:

hey, why did you not make a rol,ror,rcr and rcl instruction video? 🙁

Umair Hussain says:

watched all your, SHL,SHR,SAL & SAR tuts, thank you
and you could also add the ROL,ROR,RCR & RCL instructions video 🙂

Tails8521 says:

Just a detail I want to add about SHL and all the similar shift operations like SHR, ROL, ROR… it can only take the value 1 or the CL register as second operand, at 5:40, you can see that the assembler corrected “shl ax, 2” into 2 lines of “shl ax, 1”, with some others developpement environements, it can prevent the program from assembling with an invalid inscruction operand because there is no x86 opcode for a shift with immediate value other than 1, so that’s good to know.
If you face that problem, just add the instruction several times or use the CL register.

darkaxe201 says:

In what case would the SHL instruction be useful?

Waqar Mughal says:

when i code like this, this gives an error

error: improper operand type

mov ax,1
shl ax,2

mov dx,ax
mov ah,2
int 21h

Hopewell Ngcongo says:

wow real help full video bra thanks

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!