start on reworking sys calls

This commit is contained in:
Torsten Ruger
2015-06-22 22:48:42 +03:00
parent 9c21f4274d
commit 2aba926f1f
7 changed files with 56 additions and 4 deletions

View File

@ -0,0 +1,17 @@
module Register
# name says it all really
# only arg is the method syscall name
# how the layer below executes these is really up to it
# Any function issuing a Syscall should also save the current message
# and restore it after the syscall, saving the return value in Return_index
class Syscall < Instruction
def initialize name
@name = name
end
attr_reader :name
end
end