[subrepo]
remote = https://github.com/pcercuei/lightrec.git
branch = master
- commit = 05f7e09e919327677454099664656e681f755ee5
- parent = 60e75dbfc3a5c7278e5bf4bf39801ea8fbcf3892
+ commit = 8293acf768e57060bb3ee66eeb0942d3d06b964e
+ parent = b7027dbf9b020077be29014680d96b19c97f7d20
method = merge
cmdver = 0.4.6
As such, in theory it should be able to run on every CPU that Lightning
can generate code for; including, but not limited to, __x86__, __x86_64__,
-__ARM__, __Aarch64__, __MIPS__, __PowerPC__ and __Risc-V__.
+__ARM__, __Aarch64__, __MIPS__, __PowerPC__, __SH4__ and __Risc-V__.
## Features
* [__PCSX-ReArmed__ (libretro)](https://github.com/libretro/pcsx_rearmed)
-* [__pcsx4all__ (my own fork)](https://github.com/pcercuei/pcsx4all)
-
* [__Beetle__ (libretro)](https://github.com/libretro/beetle-psx-libretro/)
* [__CubeSX/WiiSX__](https://github.com/emukidid/pcsxgc/)
+* [__Bloom__](https://github.com/pcercuei/bloom)
+
[](https://star-history.com/#pcercuei/lightrec&Date)
if (branch_in_ds) {
run_first_op = true;
- if (op->i.op == OP_SPECIAL)
+ if (!is_branch_taken(reg_cache, op->c))
+ next_pc = pc + 4;
+ else if (op->i.op == OP_SPECIAL)
next_pc = reg_cache[op->r.rs]; /* TODO: is it the old or new rs? */
else if (op->i.op == OP_J || op->i.op == OP_JAL)
next_pc = (pc & 0xf0000000) | (op->j.imm << 2);