#include <nitro/cp.h>
s64 CP_GetDivResult64( void );
s32 CP_GetDivResult32( void );
s16 CP_GetDivResult16( void );
s8 CP_GetDivResult8( void );
s64 CP_GetDivResultImm64( void );
s32 CP_GetDivResultImm32( void );
s16 CP_GetDivResultImm16( void );
s8 CP_GetDivResultImm8( void );
None.
Returns the quotient from the division operation.
This function returns the quotient from the division operation. The results can be acquired in 8-bit, 16-bit, 32-bit, or 64-bit formats. The results can be acquired in a smaller bit format than generated by the calculation, but the value may not be accurate. (For example, if the quotient 0x100 is acquired in s8 format, the result will be 0x0.) Functions that wait for the change from the busy state to the ready state and functions that are in the ready state and do not wait are provided separately.
Functions | Return Value Type | Wait State |
CP_GetDivResult64 |
s64 | Wait |
CP_GetDivResult32 |
s32 | Wait |
CP_GetDivResult16 |
s16 | Wait |
CP_GetDivResult8 |
s8 | Wait |
CP_GetDivResultImm64 |
s64 | No Wait |
CP_GetDivResultImm32 |
s32 | No Wait |
CP_GetDivResultImm16 |
s16 | No Wait |
CP_GetDivResultImm8 |
s8 | No Wait |
References the value of
DIV_RESULT(0x40002a0)
of the IO register.
References DIVCNT(0x4000280)
to check the ready state.
CP_SetDivImm*, CP_SetDiv*, CP_IsDivBusy, CP_WaitDiv, CP_GetDivRemainder*
01/09/2004 Added content
12/01/2003 Initial Version