0% found this document useful (0 votes)
23 views7 pages

Nhom2 TH4

Uploaded by

21110548
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views7 pages

Nhom2 TH4

Uploaded by

21110548
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

1.

a 100
mov dh,0 ;cot
mov dl,1
mov cx,19
push cx
mov ah,2
mov bh,0
int 10
mov ah,8
int 10
mov bl, al
mov bh, ah
mov ah,9
mov bh,0
add bl,4
mov cx,1
int 10
mov ah, 9
mov bh, 0
mov bl, 15
mov cx, 1
int 10h
mov ah, 2
mov dl, 1
int 10h
inc dh
pop cx
loop 107
mov ah,8
int 21
int 20

2.
a 100
mov dh,5
mov dl,0
mov cx,50
push cx
mov ah,2
mov bh,0
int 10
mov ah,8
int 10
mov ah,9
mov bh,0
add bl,0b
mov cx,1
int 10
inc dl
pop cx
loop 107
mov ah,8
int 21
int 20

3.
a 100
mov dh,0
mov cx,19
push cx
mov dl,0
mov cx,50
push cx
mov ah,2
mov bh,0
int 10
mov ah,8
int 10
mov ah,9
mov bh,0
add bl,0b
mov cx,1
int 10
inc dl
pop cx
loop 10b
inc dh
pop cx
loop 105
mov ah,8
int 21
int 20

a 100
mov dh,0
mov cx,19
push cx
mov dl,0
mov cx,50
push cx
mov ah,2
mov bh,0
int 10
mov ah,8
int 10
mov bl,al
mov bh,ah
mov ah,9
mov bh,0
mov bl,6
mov cx,1
int 10
inc dl
pop cx
loop 10b
inc dh
pop cx
loop 105
mov ah,8
int 21
int 20

4.
a 100
mov dl,0
push dx
mov ah,6
mov al,0
mov bh,07
mov cx,0
mov dx,184f
int 10
pop dx
mov dh,0
mov cx,19
push cx
mov ah,2
mov bh,0
int 10
mov ah,9
mov al,20
mov bh,0
add bl,0b
mov cx,1
int 10
inc dh
pop cx
loop 117
mov ah,8
int 21
cmp,al,1b
jz 144
inc dl
cmp,dl,50
jnz 142
mov dl,0
jmp 102
int 20

5.
a 100
mov dh,0
push dx
mov ah,6
mov al,0
mov bh,07
mov cx,0
mov dx,184f
int 10
pop dx
mov dl,0
mov cx,50
push cx
mov ah,2
mov bh,0
int 10
mov ah,9
mov al,20
mov bh,0
add bl,0b
mov cx,1
int 10
inc dl
pop cx
loop 117
mov ah,8
int 21
cmp,al,1b
jz 144
inc dh
cmp,dh,19
jnz 142
mov dh,0
jmp 102
int 20

6.
6.3
a 100
mov dh,7
mov cx,b
push cx
mov dl,13
mov cx,29
push cx
mov ah,2
mov bh,0
int 10
mov ah,8
int 10
mov ah,9
mov bh,0
add bl,6
mov cx,1
int 10
inc dl
pop cx
loop 10b
inc dh
pop cx
loop 105
mov ah,8
int 21
int 20

6.4
a 100
mov dl,13
push dx
mov ah,6
mov al,0
mov bh,07
mov cx,29
mov dx,184f
int 10
pop dx
mov dh,7
mov cx,b
push cx
mov ah,2
mov bh,0
int 10
mov ah,9
mov al,20
mov bh,0
add bl,6
mov cx,1
int 10
inc dh
pop cx
loop 117
mov ah,8
int 21
cmp,al,1b
jz 144
inc dl
cmp,dl,50
jnz 142
mov dl,0
jmp 102
int 20

6.4.
a 100
mov dl,10 ;toa do cot bat dau
push dx ;(2)
mov ah,6
mov al,0
mov bh,7
mov cx,0
mov dx,184f
int 10
pop dx
mov dh,10 ;toa do dong bat dau
mov cx,b
push cx ;(1)
mov ah,2
mov bh,0
int 10
mov ah,9
mov al,20
mov bh,0
add bl,6
mov cx,1
int 10
inc dh
pop cx
loop 117
mov ah,8
int 21
cmp al,1b
jz 144 ;end
inc dl
cmp dl,3c
jnz 142 ;jump to (3)
mov dl,13
jmp 102 ;(3)
int 20

6.5.
a 100
mov dh,7
push dx
mov ah,6
mov al,0
mov bh,07
mov cx,0
mov dx,184F
int 10
pop dx
mov dl,13
mov cx,29
push cx
mov ah,2
mov bh,0
int 10
mov ah,9
mov al,20
mov bh,0
add bl,6
mov cx,1
int 10
inc dl
pop cx
loop 117
mov ah,8
int 21
cmp al,1B
jz 144
inc dh
cmp dh,12
jnz 142
mov dh,7
jmp 102
mov ah,8
int 21
int 20

a 100
mov dh, 0
mov dl, 0
mov cx, 50
mov ah, 2
mov bh, 0
mov ah, 6
mov al, 0
mov bh, 07h
mov cx, 0
mov dx, 184Fh
int 10h
loop1:
push cx ; giu CX
int 10h ; lay vi tri con tro
mov color, al ; luu mau cua o hien tai
mov ah, 9 ; doi mau cho o hien tai
mov al, 20h ; khoi tao kieu chuyen dong
mov bh, 0
mov cx, 1
int 10h
pop cx ; phuc hoi CX
inc dl ; tang cot
loop loop1 ; lap lai theo cot

mov ah, 8 ; nhap mot phim tu ban phim


int 21h
cmp al, 1Bh ; so sanh voi ESC
je end_prog ; thoat khoi chuong trinh
inc dh ; tang hang
cmp dh, 19h ; so sanh voi hang cuoi cung
jne loop2 ; chuyen sang hang khac
mov dh, 0 ; quay ve hang dau tien

loop2:
jmp start ; quay ve vi tri dau tien de chay lai chuong trinh

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy