Skip to content

Commit debb3fa

Browse files
authored
Merge pull request #843 from uyjulian/dummy_iop_module
Add dummy IOP module
2 parents 702b285 + 8ecfc93 commit debb3fa

4 files changed

Lines changed: 54 additions & 0 deletions

File tree

iop/system/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ SUBDIRS = \
1010
alloc \
1111
boardinf \
1212
dmacman \
13+
dummymod \
1314
eeconf \
1415
eesync \
1516
eesync-nano \

iop/system/dummymod/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# _____ ___ ____ ___ ____
2+
# ____| | ____| | | |____|
3+
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
4+
#-----------------------------------------------------------------------
5+
# Copyright ps2dev - http://www.ps2dev.org
6+
# Licenced under Academic Free License version 2.0
7+
# Review ps2sdk README & LICENSE files for further details.
8+
9+
IOP_IMPORT_INCS += \
10+
system/loadcore
11+
12+
IOP_OBJS = \
13+
dummymod.o
14+
15+
include $(PS2SDKSRC)/Defs.make
16+
include $(PS2SDKSRC)/iop/Rules.bin.make
17+
include $(PS2SDKSRC)/iop/Rules.make
18+
include $(PS2SDKSRC)/iop/Rules.release

iop/system/dummymod/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Dummy IOP Module
2+
3+
This module is a minimal module intended to be used where a module is used but
4+
a no-op is desired, such as a module in an IOPRP image.
5+
6+
## Configurations
7+
8+
There are multiple configurations of this library, allowing the choice of
9+
balancing between size, speed, and features.
10+
11+
* `dummymod` -> The recommended version.
12+
13+
## How to use this module in your program
14+
15+
In order to use this module in your program, use `LoadModule` or \
16+
`LoadModuleBuffer` with no arguments.

iop/system/dummymod/src/dummymod.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
# _____ ___ ____ ___ ____
3+
# ____| | ____| | | |____|
4+
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5+
#-----------------------------------------------------------------------
6+
# Copyright ps2dev - http://www.ps2dev.org
7+
# Licenced under Academic Free License version 2.0
8+
# Review ps2sdk README & LICENSE files for further details.
9+
*/
10+
11+
#include <loadcore.h>
12+
13+
int _start(int ac, char **av)
14+
{
15+
(void)ac;
16+
(void)av;
17+
18+
return MODULE_NO_RESIDENT_END;
19+
}

0 commit comments

Comments
 (0)