Kingcom / armips

An assembler for various ARM and MIPS platforms. Builds available at http://buildbot.orphis.net/armips/
MIT License
363 stars 77 forks source link

No rfe (cop0 0x10) instruction (PSX MIPS) #154

Closed Lameguy64 closed 5 years ago

Lameguy64 commented 5 years ago

This instruction is simply a macro of cop0 0x10 which is used to return from an exception state on the PSX and is necessary for writing debug monitors and custom cheat cartridge firmware that utilize a cop0 breakpoint based execution hook. The GNU assembler (from GCC) supports this opcode when configured for mipsel.

My current workaround is to use a .word directive with the opcode for rfe/cop0 0x10: .macro rfe .word 0x42000010 .endmacro

sp1187 commented 5 years ago

Fixed by https://github.com/Kingcom/armips/commit/d31ec6bf3eed7ce2012f884bd6cf93790d68b8e9. Also enabled the COP0 TLB instructions, which were incorrectly disabled for PSX.