mortbopet / Ripes

A graphical processor simulator and assembly editor for the RISC-V ISA
https://ripes.me/
MIT License
2.49k stars 270 forks source link

Assembly source code execution highlight only works with default .text start address #355

Closed Aurelio-AVB closed 4 months ago

Aurelio-AVB commented 4 months ago

Hi,

I was doing some testing and noticed that the source code execution highlight only appears when the start address for the .text section is the default (0x00000000).

image

If I change the .text start address source code highlight does not appear image

I am using ripes 2.2.6-41-gb71f0dd on Win11.

Thanks for any input and regards, Aurelio Villalpando

mortbopet commented 4 months ago

Thank you for reporting this; i'm sure this'll be an easy thing to fix - suspecting that the PC is used to index the text blocks in the code editor, but we're never doing the math to also account for a non-zero starting address of the code. Will look into it asap!

mortbopet commented 4 months ago

@Aurelio-AVB should be fixed now; please let me know if it works for you, and if not, feel free to reopen.