libmonochrome/src/ML_vram_address.c

21 lines
988 B
C
Raw Normal View History

/* ************************************************************************** */
/* */
2016-05-24 00:38:30 +02:00
/* ML_vram_address.c */
2016-04-22 07:06:40 +02:00
/* | Project : libmonochrome */
/* */
/* By: Pierre "PierrotLL" Le Gall <legallpierre89@gmail.com> */
/* Last updated: 2011/11/22 */
/* */
/* ************************************************************************** */
#include <monochrome/internals.h>
2016-04-25 15:08:15 +02:00
// Syscall 0x135 (Thanks to Simon Lothar for this function)
typedef char*(*sc_cpv)(void);
const unsigned int sc0135[] = {0xD201D002, 0x422B0009, 0x80010070, 0x0135};
2016-05-24 00:38:30 +02:00
void* ML_vram_address()
{
2016-04-25 15:08:15 +02:00
return ((sc_cpv)sc0135)();
}