Playstation 1 的 C 編譯器與函式庫
今天整理CD找到 Playstation 1 的 MIPSGCC 編譯器與函式庫. Windows 下執行. 壓縮後
5Mb 含範例. 需要的人email 報上來(請確認你的信箱可接收大型檔案). Playstation
1 編譯器除了 Yaroze & PsyQ 外大概就 Blade 比較好用了. 三年前稍微試過一下的確可以跑. 為什麼要分享? 因為老子爽. 讀我檔如下(網站已經被砍了):
-----------------------------------------------------------
QUICK START README for
Blade PSX Programming Libraries and MIPSGCC compiler
(c) Blade, 2001/2
-----------------------------------------------------------
For further information and to get the latest version, visit:
http://www.blade.ip3.com/
Or e-mail blade@ip3.com
--------
CONTENTS
--------
OVERVIEW
SYSTEM REQUIREMENTS
SETUP
COMPATIBILITY
FURTHER INFORMATION
--------
OVERVIEW
--------
The Blade PSX Programming Libraries are a set of C programming
libraries designed to allow the creation of homebrew Playstation
games or demos without relying on any copyrighted (Sony) libraries.
The basic program creation process is as follows:
Create and edit the C source code on the PC, then use the
supplied MIPSGCC cross-compiler to create a Playstation executable.
This file (along with any auxiliary graphic and sound files) is
sent to the Playstation via a PC comms card linked to an
'Action Replay' device on the Playstation which has been flashed
with Caetla.
-------------------
SYSTEM REQUIREMENTS
-------------------
To make use of the Blade PSX Programming Libraries and the MIPSGCC
compiler, you must have the following equipment:
- A PC running Microsoft Windows 95 or higher
- Around 6Mb of free hard disk space
- A PC <-> Playstation Comms Card
- A straight-through M-F 25-pin cable
- An 'old-style' Playstation with a parallel port
- An Action Replay-type device flashed with Caetla
(only tested with Caetla versions > 0.35)
- A copy of 'PSEXE' the PC-side Caetla comms program
This document does not deal with hardware set-up, and assumes that
that you already have all the equipment correctly configured to
send files to the Playstation and run them.
-----
SETUP
-----
There are 2 steps to installing the Blade Libraries:
- unzipping
- configuring
Unzipping the Blade PSX Programming Libraries
----------------------------------------------
When unzipping the archive, be sure to extract the pathnames.
This should be the default for Windows unzippers, or use the -d
switch with a dos-based unzipper.
After extracting you should have the following folders off the
base installation directory:
BIN\ - compiler and tools
DEMOS\ - some example source code
DOCS\ - documentation
INCLUDE\ - C library header files
LIB\ - C library files
TEMP\ - MIPSGCC temporary directory
In the base directory you'll see the file:
BSTART.EXE - a one-off set-up program (see below)
Configuring the Blade PSX Programming Libraries
-----------------------------------------------
The MIPSGCC compiler requires environment variables to be set and
an addition to your PATH in order to function.
The program BSTART.EXE creates a DOS batch file MIPS.BAT which does this.
Run BSTART.EXE from the directory it extracted to (your base installation
directory).
You can either run it from the command line, or double-click it.
MIPS.BAT will be created, which is a regular DOS batch file, and can
be edited and customised to fit your own requirements - e.g. to set your
Caetla PORT variable or CHDIR to your source code directory.
BSTART.EXE is only run once, at installation time, but MIPS.BAT must be
run whenever you drop to DOS to use the Blade Libraries, so it's a good
idea to copy it to somewhere in your existing path.
To make it run automatically when you drop to DOS using the desktop icon in
Windows 95/8, right-click the icon, select Properties, click the Program tab
and enter the full path and filename of MIPS.BAT in the Batch File box.
You can display your environment settings at any time, by typing SET from
the
command line.
MIPSGCC will not function if there is a space anywhere in your installation
directory name.
BSTART recognises this and issues a warning.
Re-name the offending directory and re-run BSTART.
Compiling a program
-------------------
After running MIPS.BAT, you can compile and run a PSX program.
Change into the DEMOS\DEMO1 directory and run DEMO1.BAT.
A PSX executable called DEMO1.PSX will be created and, if you have
PSEXE configured correctly, will be sent to the PSX and run.
Have a look at DEMO1.BAT:
Line 1. DEL demo1.psx
Deletes any existing demo1.psx file.
Line 2. COMPILE demo1.c
Compiles the demo1.psx executable from the demo1.c source code.
COMPILE simplifies running MIPSGCC by filling in common
parameters 'behind the scenes'. See UTILS.TXT for details.
Line 3. PSEXE demo1.psx
Runs PSEXE, which uploads and runs the PSX executable.
Removing the Blade PSX Programming Libraries
--------------------------------------------
Make sure you back up anything you want to keep, then just delete
the directory you extracted into.
-------------
COMPATIBILITY
-------------
The Blade Libraries have been developed from scratch, using source code
and information freely available on the Web.
There are some similarities with the Yaroze libraries (which are a subset
of PSY-Q).
Source code for other libraries will NOT compile without amendment.
Where Blade routines share names with Yaroze routines, they will have
roughly the same function, but the usage and syntax may differ.
See LIBREF.TXT for details of all the Blade Library functions.
-------------------
FURTHER INFORMATION
-------------------
Your first port of call should be the documentation in the DOCS folder.
Take some time to read it, and work through some of the examples in
in the DEMOS folder.
For more information visit:
http://www.blade.ip3.com/
There will be further source code, tutorials, documentation,
the latest version of the Blade Libraries and a message board.
I'm always glad to receive bug reports, comments and suggestions, as well
as news of anything you've written, or are working on, using the Blade
Libraries.
If you want, I'll post anything you've done on the site.
Send e-mails to:
blade@ip3.com
Programming 近期熱門文章
PTT數位生活區 即時熱門文章