Inspired by Lameguy64's graphics tutorial (in C) http://lameguy64.net/tutorials/pstutorials/chapter1/2-graphics.html , part of Lameguy64's PlayStation Programming Series.
This small example tries to get a similar result using MIPS asm by drawing a simple graphics primitive (yellow square) on a purple background. The colours and positioning are trying to match Lameguy64's example, but this example does not have double buffering.
Uses Silpheed/HITMEN's silph.inc
PSX helpful asm routines, taken from the classic Greentro intro source,
and converted (by me) from spASM syntax to a more standard style which is compatible with GNU as
and MARS MIPS assembly.
Build:
cargo psx build
Build and run using Mednafen emulator:
cargo psx run