viextendvstart.c
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*====================================================================
* 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/bbplayer/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 */