Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
        org 100h
        push word 0b800h
        pop fs
        xor ecx,ecx
        mov edx,ecx
        mov al,cl
@@:
        mov [fs:edx+ecx*2],al
        inc al
        inc cl
        cmp cl,16
        jne @b
        add dx,160
        mov cl,0
        cmp dx,160*16
        jne @b
        ret