Search found 297 matches

by LameGuy64
Yesterday, 12:59 am
Forum: Members Downloads
Topic: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)
Replies: 28
Views: 1349

Re: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)

nextpri points to a primitive buffer (in this case a fixed sized global array), usually to a spot where the next primitive should be written to. setTPagePri sets tpri->tag to 0x01000000 and tpri->code[0] to 0xe100xxxx. Reason I wanted to OR 0x200 in it is to set a bit that enables dithering but at o...
by LameGuy64
December 17th, 2018, 12:06 pm
Forum: Members Downloads
Topic: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)
Replies: 28
Views: 1349

Re: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)

Oh, so they're actually part of the optimizations? I didn't know it is that clever omitting variables that are never used elsewhere and turning very small functions into in-line code :oops:. somefunc() simply sets a global variable: void somefunc(int value) { global_var = value; } I decided to do an...
by LameGuy64
December 17th, 2018, 11:34 am
Forum: Members Downloads
Topic: LITELOAD - Yet another PS1 serial loader
Replies: 10
Views: 1112

Re: LITELOAD - Yet another PS1 serial loader

Why not use a simple bidirectional communications protocol where data is requested by the guest application on demand? It can be done through SioFS but the problem with that is the debugger always takes the received bytes first and therefore cannot be used with my debugger. I have thought of implem...
by LameGuy64
December 16th, 2018, 11:46 pm
Forum: Members Downloads
Topic: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)
Replies: 28
Views: 1349

Re: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)

I've been experiencing some really annoying bugs with GCC 7.2.0 as of late, most notably when optimizations are specified. The most significant bug I've encountered is if you compile the following: void myfunc() { ival = 0; somefunc( ival ); do { ival++; ival = ival * 2; somefunc( ival ); somefunc( ...
by LameGuy64
December 14th, 2018, 1:46 pm
Forum: General Chat / Messaging
Topic: .SYM files inside PS1 exe?
Replies: 2
Views: 79

Re: .SYM files inside PS1 exe?

That's interesting, with the standard Programmer's Tool SDK the symbol data is usually generated to a separate file with a .sym file extension and symbols are typically not stored inside of a PS-EXE. It might be a PS-EXE created using CodeWarrior which uses its own compiler (MIPSPRO) and from what I...
by LameGuy64
December 14th, 2018, 12:42 pm
Forum: Members Downloads
Topic: LITELOAD - Yet another PS1 serial loader
Replies: 10
Views: 1112

Re: LITELOAD - Yet another PS1 serial loader

mcomms is pretty much LITELOAD's equivalent to catflap, even borrows some command line parameters from that. mcomms up texture1.tim 0x80100000 mcomms up texture2.tim 0x80110000 mcomms run program.exe You may want to set MC_DEVICE=<serial port> environment variable so you don't have to specify serial...
by LameGuy64
December 13th, 2018, 12:28 pm
Forum: Members Downloads
Topic: PSn00b Debugger - Homebrew debugger for retail consoles
Replies: 4
Views: 272

Re: PSn00b Debugger - Homebrew debugger for retail consoles

Well, there are actually some new motherboards as recent as Socket 1151 and AM4 still being made with parallel ports on it usually as a pin header that you can connect the same DB25 connectors from an old AT machine to. My i5 4590 rig for example has such a header and I can actually use my Xplorer o...
by LameGuy64
December 13th, 2018, 11:50 am
Forum: Members Downloads
Topic: LITELOAD - Yet another PS1 serial loader
Replies: 10
Views: 1112

Re: LITELOAD - Yet another PS1 serial loader

PS-EXE size varies depending on what libs and how much data you include into your program. I typically get around around 50-60KB in small programs that use libgpu alone but you'd likely get around 90-120KB if you use libgs on top of it for example hence why I'd recommend using libgpu alone over libg...
by LameGuy64
December 12th, 2018, 2:15 pm
Forum: Members Downloads
Topic: PSn00b Debugger - Homebrew debugger for retail consoles
Replies: 4
Views: 272

PSn00b Debugger - Homebrew debugger for retail consoles

This is a PlayStation debugger I made entirely from scratch, debugging programs on real hardware is no longer exclusive to official development hardware with PSn00b Debugger as it works on retail units with a modchip and a serial cable of some sort preferably one that uses a 3.3v USB TTL serial adap...
by LameGuy64
December 11th, 2018, 6:35 pm
Forum: Members Downloads
Topic: LITELOAD - Yet another PS1 serial loader
Replies: 10
Views: 1112

Re: LITELOAD - Yet another PS1 serial loader

Just released version 1.1 which adds support for kernel patches intended for PSn00b Debugger. The protocol has also been updated so a newer version of mcomms (0.82 and onwards) is required.
by LameGuy64
December 11th, 2018, 5:51 pm
Forum: Psy-Q SDK
Topic: how to control the parallel port in/out from xplorer or action replay ?
Replies: 1
Views: 175

Re: how to control the parallel port in/out from xplorer or action replay ?

http://problemkaputt.de/psx-spx.htm#cheatdevicesxplorermemoryandiomap Hardware registers starting at 0x1f060000 and onwards are relevant to the Xplorer's parallel port interface. Its a tricky interface to make use of especially when sending data out to the PC since there are only 4 outputs to the PC...
by LameGuy64
December 10th, 2018, 11:19 am
Forum: Members Downloads
Topic: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)
Replies: 28
Views: 1349

Re: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)

Well, the only compiler related bug I've encountered was having a while() statement that waits for a specific hardware register to change with no code in it would sometimes produce an indefinite loop (branch instruction jumping to itself) but that was fixed by putting some dummy logic into said whil...
by LameGuy64
December 10th, 2018, 12:57 am
Forum: General Chat / Messaging
Topic: Making a PlayStation Link cable
Replies: 7
Views: 244

Re: Making a PlayStation Link cable

Well, the best advice I can give you by this point is to double check your wiring and make sure they are all correct.
by LameGuy64
December 9th, 2018, 1:05 pm
Forum: General Chat / Messaging
Topic: Making a PlayStation Link cable
Replies: 7
Views: 244

Re: Making a PlayStation Link cable

You're missing a few handshake lines. I think you need all handshake lines for it to work properly as some games likely need it.

Here's a reference to wiring a null modem cable with full handshaking: https://www.lammertbies.nl/comm/info/RS ... .html#full
by LameGuy64
December 9th, 2018, 11:21 am
Forum: General Chat / Messaging
Topic: Making a PlayStation Link cable
Replies: 7
Views: 244

Re: Making a PlayStation Link cable

No, don't connect the 3.3v line as that would likely fry something on the console.

Have you followed the standard null modem cable wiring when making the serial cable? (ie. tx -> rx, rx ->tx)
by LameGuy64
December 9th, 2018, 11:13 am
Forum: Members Downloads
Topic: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)
Replies: 28
Views: 1349

Re: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)

I never had any issues working with code compiled using GCC 7.2.0 on the PS1 so I don't exactly know what you're talking about. The compiler's register usage adheres to the R3000 specification and I've had no issue interacting with hardware registers (though it might be because I do such operations ...
by LameGuy64
December 9th, 2018, 12:30 am
Forum: Members Downloads
Topic: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)
Replies: 28
Views: 1349

Re: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)

These are intended to be used with open source libraries. I haven't bothered compiling any of the existing ones with these builds of the GNU toolchain since I write my own libraries instead (yeah, I'm that hardcore) as the existing ones don't really fit my standards very well but I occasionally use ...
by LameGuy64
December 8th, 2018, 11:11 pm
Forum: Members Downloads
Topic: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)
Replies: 28
Views: 1349

Re: MinGW32 compiled GCC 7.2.0 Toolchain (mipsel-unknown-elf)

Just added downloads of the toolchain compiled for various hosts including linux-arm (Raspberry Pi). I also added a download of the libgcc library since it is apparently mandatory for things like int64 emulation and for whatever reason it will never compile under Windows.
by LameGuy64
December 7th, 2018, 1:28 pm
Forum: General Chat / Messaging
Topic: Making a PlayStation Link cable
Replies: 7
Views: 244

Re: Making a PlayStation Link cable

You can find the pinout right here: http://hitmen.c02.at/html/psx_siocable.html I built my own link cable by using the same wiring as a standard null modem cable but adjusted to go in line with the PlayStation's serial pinout. Handshake lines must be wired accordingly in case of games that use hands...
by LameGuy64
December 3rd, 2018, 3:58 pm
Forum: Graphics/GPU
Topic: Is it possible to use SetRotMatrix/SetTransMatrix for geometry and camera at the same time?
Replies: 10
Views: 851

Re: Is it possible to use SetRotMatrix/SetTransMatrix for geometry and camera at the same time?

Ah, you need to Z sort your primitives using the OTz result. DivideF4( &vp[0], &vp[1], &vp[3], &vp[2], color[i], obj, (u_long *)myOT[ActiveBuffer].org+OTc, &div); and... AddPrim((u_long *)myOT[ActiveBuffer].org+OTc, obj); That should fix your Z sorting issues. Also, you may want to do some if checks...