Package mars.mips.instructions.syscalls
Class SyscallReadDouble
java.lang.Object
mars.mips.instructions.syscalls.AbstractSyscall
mars.mips.instructions.syscalls.SyscallReadDouble
- All Implemented Interfaces:
Syscall
Service to read the bits of console input double into $f0 and $f1.
$f1 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 read the bits of input double into $f0 and $f1.Methods inherited from class mars.mips.instructions.syscalls.AbstractSyscall
getName, getNumber, setNumber
-
Constructor Details
-
SyscallReadDouble
public SyscallReadDouble()Build an instance of the syscall with its default service number and name.
-
-
Method Details
-
simulate
Performs syscall function to read the bits of input double into $f0 and $f1.- Specified by:
simulate
in interfaceSyscall
- Specified by:
simulate
in classAbstractSyscall
- Parameters:
statement
- BasicStatement object for this syscall instruction.- Throws:
SimulatorException
InterruptedException
-