本文介绍了TASM:嵌入式循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道TASM中双循环的语法是什么吗?我记得您将cx与push和pop功能一起使用,但我不记得如何.
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.
非常感谢您.
推荐答案
操作方法
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
基本上就是
这篇关于TASM:嵌入式循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!