Git Product home page Git Product logo

ps2-cunit-port's Introduction

PS2Unit

PS2Unit is a script for compiling & installing CUnit for the Playstation 2 EE core and IOP.

I decided to make it because CUnit doesn't exactly make itself easy to compile in the first place, and it's a little extra tricky to get going on the EE, and a lot harder to get going on the IOP.

It's not impossible and definitely not difficult for anyone who's used to PS2 programming, but I thought it'd be nice to help out newbies like me.

Usage

You will need ps2dev installed with the PS2DEV environment variable set to the location it was installed to - see https://github.com/ps2dev/ps2dev to ensure you're set-up fully.

Run the following commands to download this repository and compile CUnit for EE and IOP.

git clone https://github.com/telyn/ps2-cunit-port.git
cd ps2unit-cunit-port
./install-cunit.sh

For an example of a CUnit program and its compilation for the host machine, EE, and IOP, see the 'test' directory.

IOP-specific notes

CUnit requires functions to be imported from the following IRX modules:

  • alloc.irx
  • stdio.irx
  • sysclib.irx
  • thbase.irx

Of those, all except alloc.irx are loaded by default by PS2Link (or already loaded by the PS2 BIOS, I don't really know) - so you don't need to load them prior to loading a program compiled with CUnit.

To load alloc.irx prior to loading your program:

cd $PS2SDK/iop/irx
ps2client execiop host:alloc.irx

n.b. at least for me, ps2client execiop remains

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.