home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK5 / DOS_23 / LL_LAND.ZIP / LL_PAGE.INC < prev    next >
Text File  |  1993-05-11  |  878b  |  41 lines

  1. ;;
  2. ;; [ Lord Logics Simple Page Flip ]
  3. ;;
  4. ;; No retrace checking is done here.  Just deal with it . . .
  5. ;;
  6. .code
  7. ll_page proc
  8.     push    ds
  9.     mov     ax,@data
  10.     mov     ds,ax
  11.  
  12.     mov     cx,LL_DRAW
  13.     mov     bx,LL_SHOW
  14.     mov     LL_DRAW,bx
  15.     mov     LL_SHOW,cx
  16.  
  17.     cli
  18.  
  19.     mov     dx,03DAh
  20.     in      al,dx           ;; Clear the flip-flop
  21.  
  22.     mov     dx,03D4h        ;; CRT Controller: Start Addr High
  23.     mov     al,0Ch          ;; Set High Address to SHOW_PAGE
  24.     out     dx,al           ;; :
  25.     inc     dx              ;; :
  26.     mov     al,ch           ;; :
  27.     out     dx,al           ;; :
  28.     dec     dx              ;; CRT Controller: Start Addr Low
  29.     mov     al,0Dh          ;; Set LOW ADDRESS to SHOW_PAGE
  30.     out     dx,al           ;; :
  31.     inc     dx              ;; :
  32.     mov     al,cl           ;; :
  33.     out     dx,al           ;; :
  34.  
  35.     sti
  36.  
  37.     pop     ds
  38.     ret
  39. ll_page endp
  40.  
  41.