Yarexe converts a Net Yaroze siocons script file and packages the assets and executable into a single psx.exe file that can run on a PlayStation.
- yarexe.exe is a win32 executable (compiled with TinyCC).
- yarexe.c & yarexe.inc are the source files.
gcc -static-libgcc -static-libstdc++ -static -O3 yarexe.c -o yarexe
Note: Yarexe is programmed for windows, it will throw a lot of warnings, ignore them.
Note: Yarexe tries to handle case differences but it will not find directories or files for you.
- Net Yaroze compiler (MIPSEL-LE ECOFF), DJGP GCC (DOS) or PSX3 (win32) compiler.
- PS-X Executables (ELF PS-X), A normal, staticly linked PlayStation executable.
- Net Yaroze Metrowerks Codewarrior .PXE release executables ( not the debug executables)
- Net Yaroze compiler #1 and patched with eco2exe.exe - Must be renamed to *.PXE as it's the same format as #3.
yarexe siocons_batch_file [-v]
-
siocons_batch_file
- This your siocons auto batch script. Only
dload
,load
andgo
are used, see: https://archive.org/details/net-yaroze-documents/020-1997-userguide/page/206/mode/1up - The last line of the script must be a single
go
statement.
- This your siocons auto batch script. Only
-
-v
- Optional verbose mode, helpful for finding script or executable problems.
-
Output:
- psx.exe, which is ready to run! - If it didn't create it, something went wrong in combine or eco2exe.
- Temporary files are combine.tmp and combEco.exe which are a siocon's script combined file and ecoff to exe applied.
Programs requiring the Net Yaroze CDROM (typically for music), may or may not work depending on the coding. The work around is to put the psx.exe on a NY cdrom image, see: How to convert Net Yaroze games (siocons script with exe and assets) into PS1 ISO that runs in emulators: - https://www.youtube.com/watch?v=H0Ki7JnamIQ
To run on the no$psx emulator (<- tip the man!) it MUST be a .exe file!
Create a runpsx.bat like:
C:\no$PSX\NO$PSX.EXE psx.exe
Save it in your bin path.
To run no$PSX in the background in winXP+ use:
START /B C:\no$PSX\NO$PSX.EXE psx.exe
-
v8 Oct 2024 - Removed 2MB limit for 8MB support via emulation - Note, Some emulators do not support files over 2MB!
-
v7 Jan 2024 - added fcaseopen.c by OneSadCookie for linux path and filename DOS support
-
v6 Dec 2023 - minor fixes
-
v5 - Jun 2023 - Bug fixes
-
v4 - Jan 2023 - Improved CodeWarrior support and contains all previous versions (exe and code)
-
yarexe3.c - Aug 6th 2022
- CodeWarrior PXE support with included Libps.exe
-
yarexe235.c - March 10th 2021
- Better error handling
-
yarexe234.c - Jan 26th 2021
- added
-v
for verbose switching
- added
*nix CC - compiles with:
gcc yarexeXXX.c -o yarexe
Attached win32 version compiled with:
tcc yarexe.c -o yarexe.exe
Thanks to @SCPH-1002 for the combine code!! and of course the guys that wrote the programs required!
Originally posted: http://www.psxdev.net/forum/viewtopic.php?f=67&t=917
Yarexe is a poor hack job of the following:
// combine.exe
// Yaroze PS-X EXE builder v2.10
// Copyright (C) Barubary 1998. All rights not expressly granted reserved.
// Yaroze and PS-X are trademarks of Sony Computer Entertainment, Inc.
// THIS SOURCE CODE MAY ONLY BE MODIFIED FOR PERSONAL USE. YOU MAY NOT
// DISTRIBUTE MODIFIED VERSIONS OF THIS SOURCE CODE OR THE PROGRAM COMPILED
// FROM MODIFIED SOURCE CODE, BUT YOU MAY MODIFY IT FOR PERSONAL USE.
// THIS PROGRAM AND ITS DOCUMENTATION MAY BE DISTRIBUTED TO ANYONE, PROVIDED
// IT IS NOT MODIFIED NOR ANY CHARGE IS ASSOCIATED WITH DISTRIBUTION.
// NO WARRANTY.
/*
* eco2exe.c v0.01 Andrew Kieschnick <[email protected]>
*
* converts MIPSEL-LE ecoff to PS-X EXE
*
* THIS SOURCE WAS MODIFIED (SLIGHTLY) TO WORK UNDER DOS
* IF YOU USE UNIX, GET THE THE UNMODIFIED SOURCE
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
/*
* exefixup.c v0.02 Andrew Kieschnick <[email protected]>
*
* displays PS-X EXE header information
* offers to fix incorrect t_size
* offers to pad to 2048-byte boundary for cd-rom use
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
// CodeWarrior PS-X EXE File Patcher By ~imilco (Peter Armstrong)
// ecoff a.out format from siocon src
/*
* Copyright (C) 1997 by Sony Computer Entertainment
* All rights Reserved
*/
Copyright is of the respective owners, wherever they are! We thank you!