Results 21 comments of cyrozap

@Matthew-Bradley, > I very much appreciate the level of care you're employing on this, especially concerning the maximum stack usage. I'm glad you appreciate that, though I must admit I'm...

@Matthew-Bradley, yes, the [MUL](https://github.com/cyrozap/rv51/blob/8fa14eb7721df9e34f7545a30ab2cf262ac18790/src/main.S#L1786-L1902) and [MULH\[\[S\]U\]](https://github.com/cyrozap/rv51/blob/8fa14eb7721df9e34f7545a30ab2cf262ac18790/src/main.S#L2191-L2449) implementations in rv51 are backed by the 8051's 8-bit multiply instruction, so it is faster than looped addition (in 8051 or emulated RISC-V code),...

@Matthew-Bradley, packaging this code plus an 8051 assembler--as a Rust crate or otherwise--is out of scope for this project. If you'd like to do that, then by all means do...

@Matthew-Bradley > What assembler are you currently using? [The modified version of ASxxxx that comes with SDCC](https://github.com/cyrozap/rv51/blob/1f178a1ff64290e3ac6a89b1375847584b970a17/src/Makefile#L19). > Do you know a good 8051 reference where these many small details...

I did some investigation into the issue, and it seems there are two problems: - The stack base is hard-coded to `0x1000`: https://github.com/NationalSecurityAgency/ghidra/blob/4b99900d2f2ce6efc444aed979f6c17b1f49a988/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/service/emulation/ProgramEmulationUtils.java#L300 - The stack size is hard-coded to...

@d-millar Unfortunately, it appears the registers are not editable until the emulation trace is started, and the exception is preventing the trace from being started. The same applies to the...

@mumbel This looks like a re-implementation of #3233. #3006 is a different ISA.

I'm having the same issue--custom scripts written in Java fail to run, but scripts included with Ghidra run without any problems. It doesn't matter what version of Java I use--the...

In the process of trying to figure out what the problem was, I accidentally fixed it for myself. Here's approximately what I did--not sure what part of this fixed the...

> Do you have a link to the processor manual you can share? Unfortunately, I'm not sure a manual even exists for this architecture. As far as I've been able...