Assembly Language Programming Tutorial – 27 – LOOP Instruction

All references in this video came from:
Assembly Language for x86 Processors (6th Edition)

Brought to you by

The Rasmurtech Community:

Rasim from give us another tutorial on Assembly Language Programming . In this tutorial Rasim talks about the LOOP Instruction and shows us how to use it.




Wiki Answsers: Explain 8086 flag register

Google Plus:





Fatin Bahari says:

“error A2075: jump destination too far : by 145 byte(s) ” – Whats does it mean by that? What should i do

Mohan T says:

why should Cx register become 0 to end the loop when you passing the value to dl …how does the loop end without any condition operator 

Andrew Patterson says:

Any chance you could do a loop tutorial without using “.code?” 

Shine Irvin says:

add dl,48
it supposed to do 48 + 5 right ?
can anyone explain ?
newbie here

Bogdan Vidrean says:


Is there any possibility to have an imbricated loop inside another loop(like a while in while).I have to write a program which builds a third array containing the result of a difference between two sets and I think that the only way to solve it is to search for every element from the first set in the second and set and if it is not there than I’ll add it in the third set.Btw awesome video.I learned more in 4 minutes than 6 hours with my teachers .Thank you!

Wakia says:

Thanks a lot Rasim….

prettybeast says:

hey this is a bit outdated, but can you can explain how I should print a letter? like five times? I dunoo what to add in dl. vertically

Frozen Flame says:

Why not just use JMP?

Modern Gamer says:

Why add dl , 48 …?

Antonieta.Bonifacio says:

Why Cx and not Ax or Bx ?

Balin 91 says:

these videos are life saving …
thank you so much..

Sam EH says:

Hello. I got a quick question. How do i make my loop look like : 55  55 
so the other will disapper while it keeps running ?

CobraL0rd says:

An important detail to add here is that

the LOOP instruction (and all the similar LOOP instructions you’ll see later in this playlist) FIRST decrements CX by 1
and afterwards checks the value of CX to see if it will loop or not.

Note this!

Stinkyfinger says:

thanks m8

professorlamp says:

So glad I’ve found this channel 😀

Nour says:

another excellent tutorial … thanks a million for your time and effort ^ ^

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

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

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles   Show Cars   Motorbikes   Scooters   Bicycles   Rims & Tires   Luxury BoatsFashion   Sunglasses   Luxury Watches   Luxury Purses   Jeans Wear   High Heels   Kinis Swimwear   Perfumes   Jewellery   Cosmetics   Shaving Helpers   Fashion Hats   Modeling TipsFooding   Chef Club   Fooding Helpers   Coktails & LiquorsSports   Sport Shoes   Fitness & Detox   Golf Gear   Racquets   Hiking & Trek Gear   Diving Equipment   Ski Gear   Snowboards   Surf Boards   Rollers & SkatesEntertainment   DIY Guides   Zik Instruments   Published Books   Music Albums   Cine Movies   Trading Helpers   Make Money   Fishing Equipment   Paintball Supplies   Trading Card Games   Telescopes   Knives   Vapes   GameplaysHigh Tech   Flat Screens   Tech Devices   Camera Lenses   Audio HiFi   Printers   USB Devices   PC Hardware   Network Gear   Cloud Servers   Software Helpers   Programmer Helpers   Mobile Apps   Hearing AidsHome   Home Furniture   Home Appliances   Tools Workshop   Beddings   Floor Layings   Barbecues   Aquarium Gear   Safe Boxes   Office Supplies   Security Locks   Cleaning ProductsKids   Baby Strollers   Child Car Seats   Remote ControlledTravel   Luggages & Bags   Airlines Seats   Hotel Rooms   Fun Trips   Cruise Ships   Mexico Tours