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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
simulate(ProgramStatement 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 Read Double syscall. Default service number is 7 and name is "ReadDouble".
-
-
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
- ProgramStatement object for this syscall instruction.- Throws:
ProcessingException
-