hacking method not found
was using exit, since raise is not implemented. This was ambiguous as all programs exit. Using :died as special kernel code and bending it, and reporting it in interpreter.
This commit is contained in:
@ -245,6 +245,8 @@ module Risc
|
||||
when :exit
|
||||
set_instruction(nil)
|
||||
return false
|
||||
when :died
|
||||
raise "Method not found #{@registers[:r0]}"
|
||||
else
|
||||
raise "un-implemented syscall #{name}"
|
||||
end
|
||||
|
Reference in New Issue
Block a user