Open AshvinVaidyanathan opened 1 year ago
Hi @AshvinVaidyanathan, I believe it works the same way as hello.c. In start.S you are jumping on a label/function "hello" which is define inside hello.c. same way you can create a label inside asm_test(also make it global)file and once you test is done jump/return to the PC+4 from when you have jumped to this file. rest is same.
I have been trying to figure out how to run my own
asm_test.S
file during the simulation. I have tried adding the file to the firmware directory and made changes to the Makefile so that my file shows up in theFIRMWARE_OBJS
variable asfirmware/asm_test.o
. Then I made a target for myfirmware/asm_test.o
with the .S file as a pre-requisite and made the command the same as that offirmware/start.o
. After running I am able to see the commands show up infirmware.hex
but it's obviously not being executed because it's not called anywhere in thestart.S
file. My question is how can I make thestart.S
jump to theasm_test
part of the code like it does forhello.c
for example?Thanks in advance