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 TypeMethodDescriptionvoidsimulate(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:
simulatein interfaceSyscall- Specified by:
simulatein classAbstractSyscall- Parameters:
statement- ProgramStatement object for this syscall instruction.- Throws:
ProcessingException
-