📄 valloc.c
字号:
/* * Helper for use with the PSP Software Development Kit - http://www.pspdev.org * ----------------------------------------------------------------------- * Licensed as 'free to use and modify as long as credited appropriately' * * valloc.c - Standard C VRAM allocation routines. * * Copyright (c) 2006 Alexander Berl 'Raphael' <raphael@fx-world.org> * http://wordpress.fx-world.org * *///#include <psptypes.h>//#include <pspkernel.h>#ifdef DEBUG#include <pspdebug.h>#endif#include <pspgu.h>#include <malloc.h>#include "valloc.h"
#ifdef DEBUG#define printf pspDebugScreenPrintf#endif/* Use this to set the default valloc() alignment. */#define DEFAULT_VALIGNMENT 16#ifndef ALIGN#define ALIGN(x, align) (((x)+((align)-1))&~((align)-1))#endif
#define VRAM_SIZE 0x00200000
#define VRAM_BASE 0x04000000#define UNCACHED_POINTER 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -