开发者

TASM: Embedded Loops

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 开发者_如何学Goremember how.

Thank you very much.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜