Package mars.mips.instructions.syscalls
Class SyscallExit
java.lang.Object
mars.mips.instructions.syscalls.AbstractSyscall
mars.mips.instructions.syscalls.SyscallExit
- All Implemented Interfaces:
Syscall
Service to exit the MIPS program.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
simulate(ProgramStatement statement)
Performs syscall function to exit the MIPS program.Methods inherited from class mars.mips.instructions.syscalls.AbstractSyscall
getName, getNumber, setNumber
-
Constructor Details
-
SyscallExit
public SyscallExit()Build an instance of the Exit syscall. Default service number is 10 and name is "Exit".
-
-
Method Details
-
simulate
Performs syscall function to exit the MIPS program.- Specified by:
simulate
in interfaceSyscall
- Specified by:
simulate
in classAbstractSyscall
- Parameters:
statement
- ProgramStatement object for this syscall instruction.- Throws:
ProcessingException
-