Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Let us all take a moment

Name: Anonymous 2014-04-15 21:47

to appreciate the underused an undervalued do-while. If I ever had a reason to use a while loop that executed before evaluating the predicate, the do-while loop is the loop I would choose.

Name: Anonymous 2014-04-17 15:00

>>22
It is going to test the condition every time it reaches the end of the loop. What's the difference?

Compare:

mov byte [cond], 1
while_loop:
cmp byte [cond], 0
je end_while
cmp byte [nigger], 0
je endif
mov byte [cond], 0
endif:
call jews
jmp while_loop
end_while:


versus

do_loop:
call jews
cmp byte [nigger], 0
je do_loop

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List