Assembly Language Programming Tutorial - 28 - Nested Loops

preview_player
Показать описание
All references in this video came from:

Download:

Рекомендации по теме
Комментарии
Автор

If you're having problems, remember to name the functions to l1, and l2, NOT 11, and 12, I had some trouble with that lol

thatoneberzerk
Автор

After completing inner loop at 4:35 cx values should be 0 then why still loop keep continuing ?.

vijaybkale
Автор

One should move "MOV CX, 5" before "l2:", for the result to be:
This is the more profound way of displaying nested-loops, since it's more practical.

gdimitrovx
Автор

thanks that was very clear but why you didn't dec cx directely ?

aminedoughmi
Автор

org 100h

mov cx, 5

l1:
mov dl, 1
add dl, 48
mov ah, 2h
int 21h

mov bx, cx
mov cx, 2
l2:
mov dl, 5
add dl, 48
mov ah, 2h
int 21h
loop l2
mov cx, bx
loop l1

ret

This saves and restores cx using bx. The inner loop has a counter of 2.

toddseiler
Автор

Btw, a better version of this comes in episodes 29 - 31 :)

kirdow
Автор

where can i find the rest of the videos please ....

ziadfellah-idrissi
Автор

Better example ->


lo1:
push cx ; pushes cx on stack
lo2:
; loop code
loop lo2 ; loops
pop cx ; gets value from stack and gives it to cx

loop lo1 ; loops

firetner
Автор

How can i print my result if it is big than 8 bit as dl is 8 bits?

uchihai_a_h
Автор

sir,
please make a simple program that print all 26 alphabets on next line in loop

mustafatahir
Автор

Now stuff started to complicate. Now I realy need the book to keep going. Can I have one?

zeljkombg
Автор

very hard to follow a long. right? right? you gotta capture attention a bit better when giving tutorials but it did do it's job.

why not mov cx into bx at the beginning instead of giving it a value of 5 that way you don't have to adjust 2 different variables later on if the code is required to edited ?

Noflexing
Автор

u must decrement bx      after moving bx into cx that is if u want to print 5 times ?

DhwanitDharod
Автор

Hi, the sequence u got there is where is the four 5's like
I think for the perfect sequence u should use a jump or something to include the four 5's that are missing.
Thanks for the explanation!

henrc
Автор

very hard to follow a long. right? right? you gotta capture attention a bit better when giving tutorials but it did do it's job.

Noflexing
Автор

Greattt Man i love the way u expalined ad keep it up!!!! :)

umairahmad
Автор

Why does 1 get printed twice like this These tutorials are amazing btw..

the_timestamp_guyy
Автор

how to check maximum number using loop  in assembly programming plz help

kawsarhamidsumon
visit shbcf.ru