0 Replies - 591 Views - Last Post: 04 June 2017 - 04:53 AM

#1 Soraia_T  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-June 17

Save screen characters

Posted 04 June 2017 - 04:53 AM

Good afternoon, I want to save the characters of the screen, to a file. The size is 20 rows and 40 columns. I've developed code, but it's only saving 14 rows. Can someone help me?

Here is the 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
:code:

This post has been edited by modi123_1: 04 June 2017 - 08:19 PM
Reason for edit:: In the future, please use the [code] tag button in the editor..


Is This A Good Question/Topic? 0
  • +

Page 1 of 1