viextendvstart.c 1.06 KB

/*====================================================================
 * viextendvstart.c
 *
 * Copyright 1998, Nintendo
 * All Rights Reserved.
 *
 *====================================================================*/

/**************************************************************************
 *
 *  $Revision: 1.1.1.2 $
 *  $Date: 2002/10/29 08:06:43 $
 *  $Source: /root/leakn64/depot/rf/sw/n64os20l/libultra/monegi/vi/viextendvstart.c,v $
 *
 **************************************************************************/

#include "osint.h"
#include "rcp.h"
#include "viint.h"

extern u32 __additional_scanline;

/*
 * Name:   osViExtendVStart
 *
 * Description:
 *	Calculate VStart.
 */
void
osViExtendVStart(u32 value)
{

#ifdef _DEBUG
  /* Check that VI manager is running */
  if (!__osViDevMgr.active) {
    __osError(ERR_OSVIEXTENDVSTART_VIMGR, 0);
    return;
  }

  /* Check for valid value range */
  if (value > 48) {
    __osError(ERR_OSVIEXTENDVSTART_VALUE, 1, value);
      return;
  }
    
#endif
  __additional_scanline = value;
  return;

}  /* osViExtendVStart */