开发者

TASM: Embedded Loops

开发者 https://www.devze.com 2023-03-02 16:16 出处:网络
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.

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

精彩评论

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