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
Amazon Auto Links: No products found.
Thanks!
hey, why did you not make a rol,ror,rcr and rcl instruction video? 🙁
watched all your, SHL,SHR,SAL & SAR tuts, thank you
and you could also add the ROL,ROR,RCR & RCL instructions video 🙂
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.
In what case would the SHL instruction be useful?
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
wow real help full video bra thanks