Skip to content

Commit

Permalink
Improved full example for Rishka VM.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Feb 16, 2024
1 parent 511833c commit 80b81de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/full_example/full_example.ino
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ void setup() {
while(true);
}

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

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

void loop() {
Expand Down

0 comments on commit 80b81de

Please sign in to comment.