diff --git a/examples/exit.asm b/examples/exit.asm new file mode 100644 index 0000000..e69de29 diff --git a/examples/hello-world.asm b/examples/hello-world.asm new file mode 100644 index 0000000..e69de29 diff --git a/riscemu/Syscall.py b/riscemu/Syscall.py index 74aeb64..5d3c117 100644 --- a/riscemu/Syscall.py +++ b/riscemu/Syscall.py @@ -98,7 +98,7 @@ class SyscallInterface: data = scall.cpu.mmu.read(addr, size) - if not isinstance(str, bytearray): + if not isinstance(data, bytearray): print(FMT_SYSCALL + '[Syscall] write: writing from .text region not supported.' + FMT_NONE) return scall.ret(-1)