Files
pspsdk/src/gu/sceGuOffset.c
Francisco Javier Trujillo Mata b1bf44e88a Adding assertions
- Adding assertions to each specific sceGu function
- Also adding printf for verbose output
2025-07-17 21:41:15 +02:00

23 lines
601 B
C

/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2005 Jesper Svennevid
*/
#include "guInternal.h"
void sceGuOffset(unsigned int x, unsigned int y)
{
#ifdef GU_DEBUG
printf("sceGuOffset(%08X, %08X);\n", x, y);
assert(gu_init && "GU not initialized");
assert(x < 4096 && "X offset too large");
assert(y < 4096 && "Y offset too large");
#endif
sendCommandi(OFFSET_X, x << 4);
sendCommandi(OFFSET_Y, y << 4);
}