home *** CD-ROM | disk | FTP | other *** search
/ Fujiology Archive / fujiology_archive_v1_0.iso / !FALCON / RG / RES_RIPR.ZIP / RES_RIPR / RR2VIDEL.S < prev    next >
Encoding:
Text File  |  2005-04-30  |  1.5 KB  |  40 lines

  1. *************************************************************************************
  2. * Reservoir Ripper II :: VIDEL Setter :: Coded by MrPink :: [c] 1998 Reservoir Gods *
  3. *************************************************************************************
  4.  
  5. ; Use Reservoir Ripper's new 'Save VIDEL' function to dump the
  6. ; current video mode. Now incbin this file into your program
  7. ; and use this routine to set the capture VIDEL stting
  8.  
  9.  
  10. set_screen_mode:
  11.     lea    videl_data,a0
  12.  
  13.     move.w    (a0)+,$ffff8282.w    ; 4 Horizontal Hold Timer
  14.     move.w    (a0)+,$ffff8284.w    ; 6 Horizontal Border Begin
  15.     move.w    (a0)+,$ffff8286.w    ; 8 Horizontal Border End
  16.     move.w    (a0)+,$ffff8288.w    ;10 Horizontal Display Begin
  17.     move.w    (a0)+,$ffff828a.w    ;12 Horizontal display End 
  18.     move.w    (a0)+,$ffff828c.w    ;14 HSS-Synchro
  19.     move.w    (a0)+,$ffff828e.w    ;16 HFS
  20.     move.w    (a0)+,$ffff8290.w    ;18 HEE
  21.     move.w    (a0)+,$ffff82a2.w    ;20 Vertical Frequency Timer
  22.     move.w    (a0)+,$ffff82a4.w    ;22 Vertical Border Begin
  23.     move.w    (a0)+,$ffff82a6.w    ;24 Vertical Border End
  24.     move.w    (a0)+,$ffff82a8.w    ;26 Vertical Display Begin
  25.     move.w    (a0)+,$ffff82aa.w    ;28 Vertical Display End
  26.     move.w    (a0)+,$ffff82ac.w    ;30 VSS
  27.     move.w    (a0)+,$ffff820a.w    ;32 Video Sync Mode
  28.     move.w    (a0)+,$ffff82c0.w    ;34 Video Clock
  29.     move.w    (a0)+,$ffff8266.w    ;36 SPSHIFT - Falcon res
  30.     tst.b    7(a0)
  31.     beq.s    .no_st
  32.     move.b    6(a0),$ffff8260.w    ;ST Mode
  33. .no_st
  34.     move.w    (a0)+,$ffff82c2.w    ;38 Video Control
  35.     move.w    (a0)+,$ffff8210.w    ;40 Falcon Line Width
  36.     move.w    (a0)+,$ffff820e.w    ;42 STe Line Width
  37.     rts
  38.  
  39. videl_data:
  40.     incbin    'c:\scrnmod.vid'