home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / CRYPT20.ZIP / PUTSCR.ASM < prev    next >
Assembly Source File  |  1993-11-07  |  1KB  |  60 lines

  1. ;This program will display the picture file "message.scr"
  2.  
  3. .model tiny
  4. .radix 16
  5. .code
  6.  
  7.         org 100
  8. start:
  9.  
  10. SetScreenMode:
  11.         mov     ax,13
  12.         int     10
  13.  
  14. OpenFile:
  15.         mov     dx,offset Filename
  16.         mov     ax,3d00
  17.         int     21
  18.         jc      DoneScreen
  19.         xchg    bx,ax
  20.  
  21. LoadColors:
  22.         mov     dx,offset colors
  23.         mov     cx,300
  24.         mov     ah,3f
  25.         int     21
  26.  
  27.         push    bx
  28. SetColors:
  29.         mov     dx,offset colors
  30.         xor     bx,bx
  31.         mov     cx,0ff
  32.         mov     ax,1012
  33.         int     10
  34.         pop     bx
  35.  
  36. LoadPicture:
  37.         mov     dx,0a000
  38.         mov     ds,dx
  39.         xor     dx,dx
  40.         mov     cx,320d*200d
  41.         mov     ah,3f
  42.         int     21
  43.  
  44.  
  45. CloseFile:
  46.         mov     ah,3e
  47.         int     21
  48.  
  49. DoneScreen:
  50.         xor     ax,ax
  51.         int     16
  52.         mov     ax,3
  53.         int     10
  54.         int     20
  55.  
  56. Filename        db      'message.scr',0
  57. Colors  db      300 dup(?)
  58.  
  59. end start
  60.