mirror of
https://github.com/pspdev/pspsdk.git
synced 2026-01-04 22:30:34 +00:00
first commit
This commit is contained in:
23
src/openpsid/Makefile.am
Normal file
23
src/openpsid/Makefile.am
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
libdir = @PSPSDK_LIBDIR@
|
||||
|
||||
CC = @PSP_CC@
|
||||
CCAS = $(CC)
|
||||
AR = @PSP_AR@
|
||||
RANLIB = @PSP_RANLIB@
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src/base -I$(top_srcdir)/src/kernel
|
||||
CFLAGS = @PSPSDK_CFLAGS@
|
||||
CCASFLAGS = $(CFLAGS) -I$(top_srcdir)/src/base -I$(top_srcdir)/src/kernel
|
||||
|
||||
OPENPSID_OBJS = sceOpenPSID_0000.o sceOpenPSID_0001.o
|
||||
|
||||
libpspopenspidincludedir = @PSPSDK_INCLUDEDIR@
|
||||
libpspopenspidinclude_HEADERS = pspopenpsid.h
|
||||
|
||||
lib_LIBRARIES = libpspopenpsid.a
|
||||
libpspopenpsid_a_SOURCES = sceOpenPSID.S
|
||||
libpspopenpsid_a_LIBADD = $(OPENPSID_OBJS)
|
||||
|
||||
$(OPENPSID_OBJS): sceOpenPSID.S
|
||||
$(COMPILE) -DF_$* $< -c -o $@
|
||||
30
src/openpsid/pspopenpsid.h
Executable file
30
src/openpsid/pspopenpsid.h
Executable file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* PSP Software Development Kit - http://www.pspdev.org
|
||||
* -----------------------------------------------------------------------
|
||||
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
||||
*
|
||||
* pspopenpsid.h - Prototypes for the OpenPSID library
|
||||
*
|
||||
* Copyright (c) 2008 InsertWittyName (David Perry)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __PSPOPENPSID_H__
|
||||
#define __PSPOPENPSID_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct PspOpenPSID
|
||||
{
|
||||
unsigned char data[16];
|
||||
} PspOpenPSID;
|
||||
|
||||
int sceOpenPSIDGetOpenPSID(PspOpenPSID *openpsid);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __PSPOPENPSID_H__ */
|
||||
13
src/openpsid/sceOpenPSID.S
Normal file
13
src/openpsid/sceOpenPSID.S
Normal file
@@ -0,0 +1,13 @@
|
||||
.set noreorder
|
||||
|
||||
#include "pspimport.s"
|
||||
|
||||
// Build List
|
||||
// sceOpenPSID_0000.o sceOpenPSID_0001.o
|
||||
|
||||
#ifdef F_sceOpenPSID_0000
|
||||
IMPORT_START "sceOpenPSID",0x40010011
|
||||
#endif
|
||||
#ifdef F_sceOpenPSID_0001
|
||||
IMPORT_FUNC "sceOpenPSID",0xC69BEBCE,sceOpenPSIDGetOpenPSID
|
||||
#endif
|
||||
Reference in New Issue
Block a user