mars.mips.instructions.syscalls
Class SyscallReadDouble
java.lang.Object
mars.mips.instructions.syscalls.AbstractSyscall
mars.mips.instructions.syscalls.SyscallReadDouble
- All Implemented Interfaces:
- Syscall
public class SyscallReadDouble
- extends AbstractSyscall
Service to read the bits of console input double into $f0 and $f1.
$f1 contains high order word of the double.
Constructor Summary |
SyscallReadDouble()
Build an instance of the Read Double syscall. |
Method Summary |
void |
simulate(ProgramStatement statement)
Performs syscall function to read the bits of input double into $f0 and $f1. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyscallReadDouble
public SyscallReadDouble()
- Build an instance of the Read Double syscall. Default service number
is 7 and name is "ReadDouble".
simulate
public void simulate(ProgramStatement statement)
throws ProcessingException
- Performs syscall function to read the bits of input double into $f0 and $f1.
- Specified by:
simulate
in interface Syscall
- Specified by:
simulate
in class AbstractSyscall
- Parameters:
statement
- ProgramStatement object for this syscall instruction.
- Throws:
ProcessingException