Package mars.mips.instructions.syscalls
Class SyscallPrintDouble
java.lang.Object
mars.mips.instructions.syscalls.AbstractSyscall
mars.mips.instructions.syscalls.SyscallPrintDouble
- All Implemented Interfaces:
Syscall
Service to display double whose bits are stored in $f12 and $f13 onto the console.
$f13 contains high order word of the double.
-
Constructor Summary
ConstructorsConstructorDescriptionBuild an instance of the syscall with its default service number and name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
simulate
(BasicStatement statement) Performs syscall function to print double whose bits are stored in $f12 and $f13.Methods inherited from class mars.mips.instructions.syscalls.AbstractSyscall
getName, getNumber, setNumber
-
Constructor Details
-
SyscallPrintDouble
public SyscallPrintDouble()Build an instance of the syscall with its default service number and name.
-
-
Method Details
-
simulate
Performs syscall function to print double whose bits are stored in $f12 and $f13.- Specified by:
simulate
in interfaceSyscall
- Specified by:
simulate
in classAbstractSyscall
- Parameters:
statement
- BasicStatement object for this syscall instruction.- Throws:
SimulatorException
-