I'm wanting to try out this opensource lib, but the GTE stuff is missing.
They have the functions address (I assume) ie:
Here:
https://github.com/ColdSauce/psxsdk/blob/master/libpsx/include/psxgte.h
I've grep'ed to see if it's used anywhere in the code base and it's not.
No$PSX doc explains how to use these op codes, but need help converting to C ( I'm not an asm guy):
Would this be used for all GTE op codes?
What variable do I swap out (hardcode) with the op code?
ie: If I were to use GTE_OP_RTPS (Perspective transformation) do I replace imm25 with 0x0180001
And where do the variables go?
Thanks for any info.
Cheers
They have the functions address (I assume) ie:
Code:
/** Perspective transformation */ GTE_OP_RTPS = 0x0180001, /** Perspective Transformation on 3 points */ GTE_OP_RTPT = 0x0280030,
https://github.com/ColdSauce/psxsdk/blob/master/libpsx/include/psxgte.h
I've grep'ed to see if it's used anywhere in the code base and it's not.
No$PSX doc explains how to use these op codes, but need help converting to C ( I'm not an asm guy):
Code:
GTE Operation The GTE doesn't have any memory or I/O ports mapped to the CPU memory bus, instead, it's solely accessed via coprocessor opcodes: mov cop0r12,rt ;-enable/disable COP2 (GTE) via COP0 status register mov cop2r0-63,rt ;\write parameters to GTE registers mov cop2r0-31,[rs+imm] ;/ mov cop2cmd,imm25 ;-issue GTE command mov rt,cop2r0-63 ;\read results from GTE registers mov [rs+imm],cop2r0-31 ;/ jt cop2flg,dest ;-jump never ;\implemented (no exception), but, jf cop2flg,dest ;-jump always ;/flag seems to be always "false"
What variable do I swap out (hardcode) with the op code?
ie: If I were to use GTE_OP_RTPS (Perspective transformation) do I replace imm25 with 0x0180001
And where do the variables go?
Thanks for any info.
Cheers