NB52053

Ass. Lab #7

Aug 25th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "" N Print "
  2.  
  3.  
  4. ; You may customize this and other start-up templates;
  5. ; The location of this template is c:\emu8086\inc\0_com_template.txt
  6.  
  7. org 100h
  8.  
  9. .model small
  10. .stack 100h
  11. .data
  12. msg db "Hello dosbox$"  
  13. len db 0
  14.  
  15. .code
  16.  
  17. main proc
  18.    
  19.        mov dx, @data
  20.        mov ds ,dx
  21.        
  22.        ;video mode setup
  23.        mov ah,0
  24.        mov al,12h
  25.        int 10h
  26.        
  27.        ;draw a pixel
  28.          
  29.        L1:
  30.           mov cx,100
  31.           mov dx,50
  32.          
  33.           L11:
  34.            mov ah,0ch
  35.            mov al,12
  36.          
  37.          
  38.            int 10h
  39.            inc len
  40.            inc dx
  41.            cmp len,100
  42.            jle L11
  43.            
  44.        L2:
  45.            mov len ,0
  46.            mov cx,150
  47.            mov dx,50
  48.            
  49.            
  50.            
  51.            
  52.            
  53.          L3:
  54.            mov len ,0
  55.            mov cx,100
  56.            mov dx,50
  57.            
  58.            
  59.            L33:
  60.            
  61.            mov ah,0ch
  62.            mov al,12
  63.          
  64.          
  65.            int 10h
  66.            inc len
  67.            inc dx
  68.            inc cx
  69.            cmp len,100
  70.            jle L33
  71.            
  72.            mov len, 0
  73.                
  74.         L34:
  75.            
  76.            mov ah,0ch
  77.            mov al,12
  78.          
  79.          
  80.            int 10h
  81.            inc len
  82.            dec dx
  83.          
  84.            cmp len,100
  85.            jle L34
  86.        
  87.        
  88.    
  89.        mov ah, 9
  90.        lea dx, msg
  91.        int 21h
  92.        
  93.        mov ah, 4ch
  94.        int 21h      
  95.        
  96. endp
  97. end main
  98.  
  99. ret
Add Comment
Please, Sign In to add comment