18 lines
409 B
Ruby
18 lines
409 B
Ruby
|
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
|