Save characters from the screen

Asked

Viewed 29 times

1

Good afternoon, I want to save screen characters to a file. The size is 20 rows and 40 columns. I’ve developed code, but it’s only holding 14 rows. Someone can help me?

Code:

mov bx,0
mov si,0
mov ax,0
mov di,si
mov cx, 80
lab_ciclo: 
       mov al, es:[bx]
       mov buffer[si], al
       inc si
       add bx,2
    loop lab_ciclo
       add di,82
       mov si,di
       mov cx,82
       cmp si, 2050
       jne lab_ciclo
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.