问题
does anybody knows what's the syntax for double looping in TASM? I remember you use cx with push and pop function but I don't remember how.
Thank you very much.
回答1:
Here's how
mov cx, 02 ; loop twice
cc: ; outer loop
push cx ; store outer cx
mov cx,03 ; loop thrice
bb: ; inner loop
;do stuff
loop bb
pop cx ;get outer cx
loop cc
that's basically it
来源:https://stackoverflow.com/questions/5849606/tasm-embedded-loops