Skip to content

Commit

Permalink
Fixed full example for Rishka library.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Feb 18, 2024
1 parent 5757531 commit 71fb231
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/full_example/full_example.ino
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ void setup() {
while(true);
}

if(!rishka_vm_loadfile(&riscvm_machine, "/hello.bin"))
rishka_vm_initialize(&rishka_vm);
if(!rishka_vm_loadfile(&rishka_vm, "/hello.bin"))
rishka_panic("Failed to load specified file.");

rishka_vm_run(&riscvm_machine, 0, NULL);
rishka_vm_reset(&riscvm_machine);
rishka_vm_run(&rishka_vm, 0, NULL);
rishka_vm_reset(&rishka_vm);
}

void loop() {
Expand Down

0 comments on commit 71fb231

Please sign in to comment.