org 100h
mov al, 1
mov bh, 0
mov dl, 6
mov dh, 11
push cs
pop es
mov ah, 13h
int 10h
jmp calc
ORG 100h
mov ax, 5 ; set ax to 5.
mov bx, 2 ; set bx to 2.
jmp calc ; go to 'calc'.
back: jmp stop ; go to 'stop'.
calc:
add ax, bx ; add bx to ax.
jmp back ; go 'back'.
stop:
mov bx, 0 ; total step counter.
push cx
mov cx, 8
k1: add bx, 2
mov al, '8'
mov ah, 0eh
int 10h
loop k1 ; external loop.
pop cx
ret
mov bx, 0 ; total step counter.
push cx
mov cx, 4
k2: add bx, 0
mov al, '8'
mov ah, 0eh
int 20h
loop k2 ; external loop.
pop cx
ret
Tidak ada komentar:
Posting Komentar