home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 6 / IOPROG_06.ISO / djgpp / djgpp2 / draycast.arj / VIDEO.S < prev   
Encoding:
Text File  |  1995-09-26  |  502 b   |  32 lines

  1. .text
  2.         .align 2
  3. .globl _copy_virt_to_real
  4. _copy_virt_to_real:
  5.         pushl %ebp
  6.         movl %esp,%ebp
  7.  
  8.         movw  $0x03da, %dx
  9.  
  10.         movl  _p_virt, %esi 
  11.  
  12.         inb %dx,%al    
  13.  
  14.         addl $3200,%esi
  15.  
  16.         movl  $0xe00a0000, %edi  
  17.  
  18. vsync1: andb $0x8,%al
  19.         jz fin_vsync
  20.         inb %dx,%al
  21.         jmp vsync1
  22. fin_vsync:            
  23.  
  24.         addl $3200,%edi
  25.  
  26.         movl $13600,%ecx
  27.  
  28.         rep ; movsl 
  29.         
  30.         pop %ebp
  31.         ret
  32.