Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAL instruction not working as expected #245

Open
mnasser431998 opened this issue Sep 10, 2023 · 0 comments
Open

JAL instruction not working as expected #245

mnasser431998 opened this issue Sep 10, 2023 · 0 comments

Comments

@mnasser431998
Copy link

mnasser431998 commented Sep 10, 2023

Hello Everyone,

I wish you all happiness and good health.

I was executing some assembly instructions on the picoRV32 and when I called the main function using the JAL instruction, it skipped an instruction.

  74:	00000f13          	li	t5,0
  78:	00000f93          	li	t6,0
  7c:	40000113          	li	sp,1024
  80:	008000ef          	jal	ra,88 <main>
  84:	00100073          	ebreak

00000088 <main>:
  88:	400007b7          	lui	a5,0x40000   <----------- should start executing from here
  8c:	01b00713          	li	a4,27             <---------- However, it started from here
  90:	00e7a023          	sw	a4,0(a5) # 40000000 <MEM_SIZE+0x3ffffc00>
  94:	00000793          	li	a5,0
  98:	0180006f          	j	b0 <main+0x28>

image
v_files_hex_files.zip
firmware.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant